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:
parent
1555d5acf5
commit
7013a3e390
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user