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

vlendec at samba.org vlendec at samba.org
Sat Nov 25 17:19:43 GMT 2006


Author: vlendec
Date: 2006-11-25 17:19:42 +0000 (Sat, 25 Nov 2006)
New Revision: 19901

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

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-11-25 17:14:39 UTC (rev 19900)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2006-11-25 17:19:42 UTC (rev 19901)
@@ -251,6 +251,9 @@
 
 	/* Components data space is allocated here once */
 	data = talloc_array(dn->components, char, strlen(dn->linearized) + 1);
+	if (!data) {
+		return false;
+	}
 
 	p = dn->linearized;
 	in_attr = true;



More information about the samba-cvs mailing list