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