svn commit: samba r19068 - in branches/SAMBA_4_0/source/lib/ldb/common: .

vlendec at samba.org vlendec at samba.org
Wed Oct 4 19:03:29 GMT 2006


Author: vlendec
Date: 2006-10-04 19:03:29 +0000 (Wed, 04 Oct 2006)
New Revision: 19068

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19068

Log:
Fix a potential NULL dereference
Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2006-10-04 18:22:51 UTC (rev 19067)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2006-10-04 19:03:29 UTC (rev 19068)
@@ -345,6 +345,10 @@
 
 	/* Allocate a structure to hold the exploded DN */
 	edn = ldb_dn_new(mem_ctx);
+	if (edn == NULL) {
+		return NULL;
+	}
+
 	pdn = NULL;
 
 	/* Empty DNs */



More information about the samba-cvs mailing list