svn commit: samba r19074 - in
branches/SAMBA_4_0/source/lib/ldb/common: .
vlendec at samba.org
vlendec at samba.org
Wed Oct 4 19:45:35 GMT 2006
Author: vlendec
Date: 2006-10-04 19:45:34 +0000 (Wed, 04 Oct 2006)
New Revision: 19074
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19074
Log:
Merge from 3_0: Fix a potential NULL dereference.
Volker
Modified:
branches/SAMBA_4_0/source/lib/ldb/common/ldb_utf8.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_utf8.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_utf8.c 2006-10-04 19:40:25 UTC (rev 19073)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_utf8.c 2006-10-04 19:45:34 UTC (rev 19074)
@@ -126,7 +126,7 @@
{
int i;
char *ret = talloc_strdup(mem_ctx, s);
- if (!s) {
+ if (!ret) {
errno = ENOMEM;
return NULL;
}
More information about the samba-cvs
mailing list