mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
fixed bug #75; add check for non-zero destlen
(This used to be commit 83bb84f131
)
This commit is contained in:
parent
1c84123026
commit
27d68a306d
@ -252,7 +252,7 @@ convert:
|
||||
|
||||
destlen = destlen - o_len;
|
||||
*dest = (char *)Realloc(ob,destlen);
|
||||
if (!*dest) {
|
||||
if (destlen && !*dest) {
|
||||
DEBUG(0, ("convert_string_allocate: out of memory!\n"));
|
||||
SAFE_FREE(ob);
|
||||
return (size_t)-1;
|
||||
|
Loading…
Reference in New Issue
Block a user