summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/smbd/server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index dcec02d3b7..8f5c3b66ec 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -307,6 +307,11 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
should hang off that */
event_ctx = event_context_init(talloc_autofree_context());
+ if (event_ctx == NULL) {
+ DEBUG(0,("Initializing event context failed\n"));
+ return 1;
+ }
+
/* initialise clustering if needed */
cluster_ctdb_init(event_ctx, model);