From: Arran Cudbard-Bell Date: Wed, 15 May 2024 21:31:26 +0000 (-0600) Subject: Remove a call to module_rlm_by_name X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b37ad71e393cee36d8f3eb7a8675542f41fdf3fa;p=thirdparty%2Ffreeradius-server.git Remove a call to module_rlm_by_name --- diff --git a/src/modules/rlm_always/rlm_always.c b/src/modules/rlm_always/rlm_always.c index 4b00ebd2992..03e2887f663 100644 --- a/src/modules/rlm_always/rlm_always.c +++ b/src/modules/rlm_always/rlm_always.c @@ -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;