From 7013a3e39090dcac768d551a1c5cd0112f53a050 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 11 Oct 2010 17:26:52 +1100 Subject: s4-ldb Allow a NULL event context in samba_ldb_init() --- source4/lib/ldb-samba/ldb_wrap.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source4') 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; -- cgit