r19076: ldb_dn_copy_partial can fail
authorVolker Lendecke <vlendec@samba.org>
Wed, 4 Oct 2006 20:22:08 +0000 (20:22 +0000)
committerGerald (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

index a52569119fcc958117f5046bb27df46a8da29390..f1d0f185ad1f06e4db9fe0b792bbd111523eec50 100644 (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) {