1
0
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:
Gerald Carter 2003-05-08 20:19:10 +00:00
parent 1c84123026
commit 27d68a306d

View File

@ -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;