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:
parent
a449b30ca4
commit
957af15e4b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user