svn commit: samba r19076 - in branches: SAMBA_3_0/source/lib/ldb/common SAMBA_4_0/source/lib/ldb/common

vlendec at samba.org vlendec at samba.org
Wed Oct 4 20:22:10 GMT 2006


Author: vlendec
Date: 2006-10-04 20:22:08 +0000 (Wed, 04 Oct 2006)
New Revision: 19076

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

Log:
ldb_dn_copy_partial can fail
Modified:
   branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c	2006-10-04 20:15:23 UTC (rev 19075)
+++ branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c	2006-10-04 20:22:08 UTC (rev 19076)
@@ -818,6 +818,7 @@
 		int comp_num = dn2->comp_num;
 		if (dn1 != NULL) comp_num += dn1->comp_num;
 		newdn = ldb_dn_copy_partial(mem_ctx, dn2, comp_num);
+		LDB_DN_NULL_FAILED(newdn);
 	}
 
 	if (dn1 == NULL) {

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 20:15:23 UTC (rev 19075)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2006-10-04 20:22:08 UTC (rev 19076)
@@ -818,6 +818,7 @@
 		int comp_num = dn2->comp_num;
 		if (dn1 != NULL) comp_num += dn1->comp_num;
 		newdn = ldb_dn_copy_partial(mem_ctx, dn2, comp_num);
+		LDB_DN_NULL_FAILED(newdn);
 	}
 
 	if (dn1 == NULL) {



More information about the samba-cvs mailing list