{
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;
TimeInit();
- db_tdb2_setup_messaging(NULL, false);
-
#ifdef HAVE_SET_AUTH_PARAMETERS
set_auth_parameters(argc,argv);
#endif
if (smbd_messaging_context() == NULL)
exit(1);
- /*
- * Do this before reload_services.
- */
- db_tdb2_setup_messaging(smbd_messaging_context(), true);
-
if (!reload_services(False))
return(-1);