summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/db_wrap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/db_wrap.c b/source4/lib/db_wrap.c
index 482b6f17b5..974490f8b2 100644
--- a/source4/lib/db_wrap.c
+++ b/source4/lib/db_wrap.c
@@ -79,6 +79,10 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx,
the main event_context */
ev = event_context_find(ldb);
+ if (ldb_set_opaque(ldb, "EventContext", ev)) {
+ return NULL;
+ }
+
ret = ldb_register_samba_handlers(ldb);
if (ret == -1) {
talloc_free(ldb);