summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-04 20:59:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:34 -0500
commit06ac3dbd9aa90e1182106bea731642895b9045fe (patch)
tree6a5ba846d481b37b75b9d1480dbfcccc407be40b
parentecd970abb657ac9472d05bef0f67148cb8ce33e7 (diff)
downloadsamba-06ac3dbd9aa90e1182106bea731642895b9045fe.tar.gz
samba-06ac3dbd9aa90e1182106bea731642895b9045fe.tar.bz2
samba-06ac3dbd9aa90e1182106bea731642895b9045fe.zip
r19079: talloc_array can fail
(This used to be commit 441ad8a45c390f807a6ec5f27d585aad54f3b210)
-rw-r--r--source4/lib/ldb/common/ldb_dn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c
index f1d0f185ad..f9b044d5b8 100644
--- a/source4/lib/ldb/common/ldb_dn.c
+++ b/source4/lib/ldb/common/ldb_dn.c
@@ -698,6 +698,7 @@ struct ldb_dn *ldb_dn_copy_partial(void *mem_ctx, const struct ldb_dn *dn, int n
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;