1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

r19076: ldb_dn_copy_partial can fail

This commit is contained in:
Volker Lendecke
2006-10-04 20:22:08 +00:00
committed by Gerald (Jerry) Carter
parent 0ab5d7692c
commit c247cf3fba

View File

@ -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) {