]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Unbound needs the inst name for xlats
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 11 Nov 2021 22:13:44 +0000 (16:13 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 11 Nov 2021 22:13:44 +0000 (16:13 -0600)
src/modules/rlm_unbound/rlm_unbound.c

index 62c65aceb46f5aeb026380b83fed9bb779df8bcb..bc81125a7cfc4c79bdd3ebf6926822b49c65ae82 100644 (file)
@@ -493,6 +493,8 @@ static int mod_bootstrap(module_inst_ctx_t const *mctx)
        rlm_unbound_t   *inst = talloc_get_type_abort(mctx->inst->data, rlm_unbound_t);
        xlat_t          *xlat;
 
+       inst->name = mctx->inst->name;
+
        if (inst->timeout > 10000) {
                cf_log_err(mctx->inst->conf, "timeout must be 0 to 10000");
                return -1;