s3:winbind: talloc the static locator child
[samba.git] / source3 / winbindd / winbindd.c
index b87686f04c552433cb003eb2405e96485e86d3fe..608c77c291b028c0e618566f522ab4a65fa049cc 100644 (file)
@@ -1184,7 +1184,12 @@ static void winbindd_register_handlers(struct messaging_context *msg_ctx,
                DBG_ERR("Unable to start idmap child: %s\n", nt_errstr(status));
                exit(1);
        }
-       init_locator_child();
+
+       status = init_locator_child(global_event_context());
+       if (NT_STATUS_IS_ERR(status)) {
+               DBG_ERR("Unable to start locator child: %s\n", nt_errstr(status));
+               exit(1);
+       }
 
        smb_nscd_flush_user_cache();
        smb_nscd_flush_group_cache();