]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Inst is const when used in the xlat function
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 8 Nov 2023 01:35:50 +0000 (19:35 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 8 Nov 2023 01:35:50 +0000 (19:35 -0600)
src/lib/unlang/xlat_builtin.c

index 57274b44a1092b0f22dabefb236c036b6bad41d0..978be50d831c98bbcaeeea78933d55fab6cea2e2 100644 (file)
@@ -1374,7 +1374,7 @@ static xlat_action_t xlat_func_eval(TALLOC_CTX *ctx, fr_dcursor_t *out,
                                    xlat_ctx_t const *xctx,
                                    request_t *request, fr_value_box_list_t *args)
 {
-       xlat_eval_inst_t *inst = talloc_get_type_abort(xctx->inst, xlat_eval_inst_t);
+       xlat_eval_inst_t const *inst = talloc_get_type_abort_const(xctx->inst, xlat_eval_inst_t);
 
        /*
         *      These are escaping rules applied to the