git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a449b30
)
r25630: Allow "NULL" as memory context, for consistency with the rest of the code,
author
Jelmer Vernooij
<jelmer@samba.org>
Sun, 14 Oct 2007 13:12:21 +0000
(15:12 +0200)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_dn.c
b/source4/lib/ldb/common/ldb_dn.c
index f0bd72e0098dfa3eb8a261b45d5bb4ea9a679b5e..08911344b759cada33bac9786b1d2cbce1722ba1 100644
(file)
--- a/
source4/lib/ldb/common/ldb_dn.c
+++ b/
source4/lib/ldb/common/ldb_dn.c
@@
-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);