1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

s4-ldb Allow a NULL event context in samba_ldb_init()

This commit is contained in:
Andrew Bartlett 2010-10-11 17:26:52 +11:00
parent 1555d5acf5
commit 7013a3e390

View 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;