s4-messaging: Pass the loadparm context, not just the messaging path
[jlayton/samba.git] / source4 / dsdb / samdb / ldb_modules / ridalloc.c
index ed87f86fa24ab8850718d934283f30275fe3176d..2cef1c445f6224e6e8895a53886aaca1611971ad 100644 (file)
@@ -73,7 +73,7 @@ static void ridalloc_poke_rid_manager(struct ldb_module *module)
                (struct loadparm_context *)ldb_get_opaque(ldb, "loadparm");
        TALLOC_CTX *tmp_ctx = talloc_new(module);
 
-       msg = imessaging_client_init(tmp_ctx, lpcfg_imessaging_path(tmp_ctx, lp_ctx),
+       msg = imessaging_client_init(tmp_ctx, lp_ctx,
                                    ldb_get_event_context(ldb));
        if (!msg) {
                DEBUG(3,(__location__ ": Failed to create messaging context\n"));