git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38c4955
)
r19076: ldb_dn_copy_partial can fail
author
Volker Lendecke
<vlendec@samba.org>
Wed, 4 Oct 2006 20:22:08 +0000
(20:22 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:15:09 +0000
(12:15 -0500)
(This used to be commit
c247cf3fba13ce1a32878efcc922eadfcbc2b092
)
source3/lib/ldb/common/ldb_dn.c
patch
|
blob
|
history
diff --git
a/source3/lib/ldb/common/ldb_dn.c
b/source3/lib/ldb/common/ldb_dn.c
index a52569119fcc958117f5046bb27df46a8da29390..f1d0f185ad1f06e4db9fe0b792bbd111523eec50 100644
(file)
--- 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) {