summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb-samba
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-11 17:26:52 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-10-11 13:02:16 +0000
commit7013a3e39090dcac768d551a1c5cd0112f53a050 (patch)
tree4cb2aeb5e7947d7f72e0f475852918a39de56b9b /source4/lib/ldb-samba
parent1555d5acf52bcb6459b209a59c877221ee0fea72 (diff)
downloadsamba-7013a3e39090dcac768d551a1c5cd0112f53a050.tar.gz
samba-7013a3e39090dcac768d551a1c5cd0112f53a050.tar.xz
samba-7013a3e39090dcac768d551a1c5cd0112f53a050.zip
s4-ldb Allow a NULL event context in samba_ldb_init()
Diffstat (limited to 'source4/lib/ldb-samba')
-rw-r--r--source4/lib/ldb-samba/ldb_wrap.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source4/lib/ldb-samba/ldb_wrap.c b/source4/lib/ldb-samba/ldb_wrap.c
index b09e68c0a1..299dbf49e7 100644
--- a/source4/lib/ldb-samba/ldb_wrap.c
+++ b/source4/lib/ldb-samba/ldb_wrap.c
@@ -113,13 +113,6 @@ static int ldb_wrap_destructor(struct ldb_wrap *w)
struct ldb_context *ldb;
int ret;
- /* we want to use the existing event context if possible. This
- relies on the fact that in smbd, everything is a child of
- the main event_context */
- if (ev == NULL) {
- return NULL;
- }
-
ldb = ldb_init(mem_ctx, ev);
if (ldb == NULL) {
return NULL;