diff options
author | Gerald Carter <jerry@samba.org> | 2003-05-08 20:19:21 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-05-08 20:19:21 +0000 |
commit | 1463c220c507eb8b76ef6527c772b0deda754217 (patch) | |
tree | d27236aa5a79bff92e9f0a3276c4871b236bb07d /source3 | |
parent | 949b2e3f6f08f2790ced7ad83f5edc5b8f782ab3 (diff) | |
download | samba-1463c220c507eb8b76ef6527c772b0deda754217.tar.gz samba-1463c220c507eb8b76ef6527c772b0deda754217.tar.bz2 samba-1463c220c507eb8b76ef6527c772b0deda754217.zip |
fixed bug #75; add check for non-zero destlen
(This used to be commit bfcec106d00355d32eb40dde99ddd5d5bed4cedb)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/charcnv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index 7acb7147fd..c3360bbb65 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -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; |