git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fc92d4
)
fixed bug #75; add check for non-zero destlen
author
Gerald Carter
<jerry@samba.org>
Thu, 8 May 2003 20:19:21 +0000
(20:19 +0000)
committer
Gerald Carter
<jerry@samba.org>
Thu, 8 May 2003 20:19:21 +0000
(20:19 +0000)
source/lib/charcnv.c
patch
|
blob
|
history
diff --git
a/source/lib/charcnv.c
b/source/lib/charcnv.c
index 7acb7147fd64f0d4fb48faab39adf43e6e8652f7..c3360bbb65891b60a29cb4e137b0532a8a8eb58e 100644
(file)
--- a/
source/lib/charcnv.c
+++ b/
source/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;