[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-3350-ga77b622
Volker Lendecke
vlendec at samba.org
Mon Jan 12 09:50:37 GMT 2009
The branch, v3-2-test has been updated
via a77b622f05c50512626b2636343eb8da6d5e4549 (commit)
from d50a487b11c4c256c674327344a824e97eeb620e (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit a77b622f05c50512626b2636343eb8da6d5e4549
Author: Volker Lendecke <vl at samba.org>
Date: Sat Jan 10 17:59:43 2009 +0100
Even for srclen == 0 we have to return something
This fixes a regression reported by Corinna Vinschen <corinna at vinschen.de>
Thanks,
Volker
-----------------------------------------------------------------------
Summary of changes:
source/lib/charcnv.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/lib/charcnv.c b/source/lib/charcnv.c
index f4efcb2..e51c33d 100644
--- a/source/lib/charcnv.c
+++ b/source/lib/charcnv.c
@@ -547,6 +547,12 @@ bool convert_string_allocate(TALLOC_CTX *ctx, charset_t from, charset_t to,
return false;
}
if (srclen == 0) {
+ ob = ((ctx != NULL) ? talloc_strdup(ctx, "") : SMB_STRDUP(""));
+ if (ob == NULL) {
+ errno = ENOMEM;
+ return false;
+ }
+ *dest = ob;
*converted_size = 0;
return true;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list