]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove a call to module_rlm_by_name
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 May 2024 21:31:26 +0000 (15:31 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 May 2024 21:31:26 +0000 (15:31 -0600)
src/modules/rlm_always/rlm_always.c

index 4b00ebd29926e35d8e37ffede6cd9cc371dcd31c..03e2887f6639846e75463d1a7dc13266cec8291f 100644 (file)
@@ -146,7 +146,7 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
 {
        rlm_always_t    *inst = talloc_get_type_abort(mctx->mi->data, rlm_always_t);
 
-       inst->mi = module_rlm_by_name(NULL, mctx->mi->name);
+       inst->mi = UNCONST(module_instance_t *, mctx->mi);
        if (!inst->mi) {
                cf_log_err(mctx->mi->conf, "Can't find the module instance data for this module: %s", mctx->mi->name);
                return -1;