diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index ed07e5c02b..4a0e60a8d7 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -90,8 +90,11 @@ struct messaging_context *smbd_messaging_context(void) { static struct messaging_context *ctx; - if (!ctx && !(ctx = messaging_init(NULL, server_id_self(), - smbd_event_context()))) { + if (ctx == NULL) { + ctx = messaging_init(NULL, server_id_self(), + smbd_event_context()); + } + if (ctx == NULL) { DEBUG(0, ("Could not init smbd messaging context.\n")); } return ctx; |