1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r25630: Allow "NULL" as memory context, for consistency with the rest of the code,

which also does.
(This used to be commit 083b606496)
This commit is contained in:
Jelmer Vernooij 2007-10-14 15:12:21 +02:00 committed by Stefan Metzmacher
parent a449b30ca4
commit 957af15e4b

View 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);