1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Exit smbstatus cleanly if messaging_init fails

(This used to be commit 5fd51833a31b326d83ac2f76d06560920547f657)
This commit is contained in:
Volker Lendecke 2008-06-13 12:00:24 +02:00 committed by Michael Adam
parent 034a97bc9c
commit f72e28e24c

View File

@ -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)) {