summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-06 20:55:38 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-08 13:03:02 +1100
commitdcbba583d9a7acbbd0086889f3be722121754eae (patch)
treed37efa20436e03b08818c79918aa78becf36a21a /source4/smbd
parentf25409195737e8e9c29495526f6d2f6c58bda037 (diff)
downloadsamba-dcbba583d9a7acbbd0086889f3be722121754eae.tar.gz
s4-event: added s4_event_context_set_default()
we're still not weaned off event_context_find()
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index e73cdfd659d..99e9c68a87d 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -376,6 +376,9 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
should hang off that */
event_ctx = s4_event_context_init(talloc_autofree_context());
+ /* setup this as the default context */
+ s4_event_context_set_default(event_ctx);
+
if (event_ctx == NULL) {
DEBUG(0,("Initializing event context failed\n"));
return 1;