s4-ldb Allow a NULL event context in samba_ldb_init()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 11 Oct 2010 06:26:52 +0000 (17:26 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 11 Oct 2010 13:02:16 +0000 (13:02 +0000)
source4/lib/ldb-samba/ldb_wrap.c

index b09e68c0a15f6633b73fd4bed139e0b0cec296ac..299dbf49e7255cc38766fbf73ecb64c81dfc9dd0 100644 (file)
@@ -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;