summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-05-08 20:19:10 +0000
committerGerald Carter <jerry@samba.org>2003-05-08 20:19:10 +0000
commit27d68a306d1e816c95865671755398b4e04cf5b2 (patch)
tree0bad68a0136e058d39abe4cf2be5f067341f12bc /source3/lib
parent1c84123026334a69a7a0d95be747c981ff0ece09 (diff)
downloadsamba-27d68a306d1e816c95865671755398b4e04cf5b2.tar.gz
samba-27d68a306d1e816c95865671755398b4e04cf5b2.tar.bz2
samba-27d68a306d1e816c95865671755398b4e04cf5b2.zip
fixed bug #75; add check for non-zero destlen
(This used to be commit 83bb84f13121267992e78f2d005257932c711f23)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/charcnv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index febd7d5496..eb427cc0fc 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;