summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-04 20:22:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:09 -0500
commitfaaec2f04ad355f7da4346a81003d3caa432923f (patch)
tree3e034e80827aaf7766b9e01f5448824624a5a8f9 /source3/lib
parent38c4955c2ac3438526b3c590bce9a9ba259e83d4 (diff)
downloadsamba-faaec2f04ad355f7da4346a81003d3caa432923f.tar.gz
samba-faaec2f04ad355f7da4346a81003d3caa432923f.tar.bz2
samba-faaec2f04ad355f7da4346a81003d3caa432923f.zip
r19076: ldb_dn_copy_partial can fail
(This used to be commit c247cf3fba13ce1a32878efcc922eadfcbc2b092)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ldb/common/ldb_dn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/ldb/common/ldb_dn.c b/source3/lib/ldb/common/ldb_dn.c
index a52569119f..f1d0f185ad 100644
--- a/source3/lib/ldb/common/ldb_dn.c
+++ b/source3/lib/ldb/common/ldb_dn.c
@@ -818,6 +818,7 @@ struct ldb_dn *ldb_dn_compose(void *mem_ctx, const struct ldb_dn *dn1, const str
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) {