diff options
-rw-r--r-- | source3/utils/status.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c index e4592dd850..45de872db6 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -375,6 +375,12 @@ static int traverse_sessionid(struct db_record *db, void *state) msg_ctx = messaging_init(NULL, procid_self(), event_context_init(NULL)); + if (msg_ctx == NULL) { + fprintf(stderr, "messaging_init failed\n"); + ret = -1; + goto done; + } + db_tdb2_setup_messaging(msg_ctx, true); if (!lp_load(get_dyn_CONFIGFILE(),False,False,False,True)) { |