From: Arran Cudbard-Bell Date: Wed, 8 Nov 2023 01:35:50 +0000 (-0600) Subject: Inst is const when used in the xlat function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8941573b7bb216c432c23c259a35810de8318353;p=thirdparty%2Ffreeradius-server.git Inst is const when used in the xlat function --- diff --git a/src/lib/unlang/xlat_builtin.c b/src/lib/unlang/xlat_builtin.c index 57274b44a10..978be50d831 100644 --- a/src/lib/unlang/xlat_builtin.c +++ b/src/lib/unlang/xlat_builtin.c @@ -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