mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Exit smbstatus cleanly if messaging_init fails
(This used to be commit 5fd51833a3
)
This commit is contained in:
parent
034a97bc9c
commit
f72e28e24c
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user