summaryrefslogtreecommitdiff
path: root/source/lib/ldb/common
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 12:15:09 -0500
commit7b6738522a80740824f3b96e73e7c48a0623b1b1 (patch)
treeb2e95f8a36adcc46eeda82a5009dac41f51a9156 /source/lib/ldb/common
parent2b3b9ce2a122ec5fd945728c117c321087d85203 (diff)
downloadsamba-7b6738522a80740824f3b96e73e7c48a0623b1b1.tar.gz
r19079: talloc_array can fail
Diffstat (limited to 'source/lib/ldb/common')
-rw-r--r--source/lib/ldb/common/ldb_dn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/lib/ldb/common/ldb_dn.c b/source/lib/ldb/common/ldb_dn.c
index f1d0f185ad1..f9b044d5b84 100644
--- a/source/lib/ldb/common/ldb_dn.c
+++ b/source/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;