svn commit: samba r19079 - 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:59:07 GMT 2006
Author: vlendec
Date: 2006-10-04 20:59:06 +0000 (Wed, 04 Oct 2006)
New Revision: 19079
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19079
Log:
talloc_array 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:51:17 UTC (rev 19078)
+++ branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c 2006-10-04 20:59:06 UTC (rev 19079)
@@ -698,6 +698,7 @@
newdn->comp_num = num_el;
n = newdn->comp_num - 1;
newdn->components = talloc_array(newdn, struct ldb_dn_component, newdn->comp_num);
+ if (newdn->components == NULL) goto failed;
if (dn->comp_num == 0) return newdn;
e = dn->comp_num - 1;
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:51:17 UTC (rev 19078)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c 2006-10-04 20:59:06 UTC (rev 19079)
@@ -698,6 +698,7 @@
newdn->comp_num = num_el;
n = newdn->comp_num - 1;
newdn->components = talloc_array(newdn, struct ldb_dn_component, newdn->comp_num);
+ if (newdn->components == NULL) goto failed;
if (dn->comp_num == 0) return newdn;
e = dn->comp_num - 1;
More information about the samba-cvs
mailing list