r25630: Allow "NULL" as memory context, for consistency with the rest of the code,
authorJelmer Vernooij <jelmer@samba.org>
Sun, 14 Oct 2007 13:12:21 +0000 (15:12 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:43:02 +0000 (05:43 +0100)
which also does.
(This used to be commit 083b606496308741958bb9fc6b3e50a582857677)

source4/lib/ldb/common/ldb_dn.c

index f0bd72e0098dfa3eb8a261b45d5bb4ea9a679b5e..08911344b759cada33bac9786b1d2cbce1722ba1 100644 (file)
@@ -75,7 +75,7 @@ struct ldb_dn *ldb_dn_new(void *mem_ctx, struct ldb_context *ldb, const char *st
 {
        struct ldb_dn *dn;
 
-       if ( (! mem_ctx) || (! ldb)) return NULL;
+       if (! ldb) return NULL;
 
        dn = talloc_zero(mem_ctx, struct ldb_dn);
        LDB_DN_NULL_FAILED(dn);