From 6030c97597993dac4aa2763779082c528d0998ca Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sun, 6 Jul 2025 09:26:23 -0400 Subject: [PATCH] failed cast is fail, not OK --- src/lib/unlang/tmpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/unlang/tmpl.c b/src/lib/unlang/tmpl.c index 83e677cd67..70debbe391 100644 --- a/src/lib/unlang/tmpl.c +++ b/src/lib/unlang/tmpl.c @@ -80,7 +80,7 @@ static unlang_action_t unlang_tmpl_resume(unlang_result_t *p_result, request_t * if (tmpl_eval_cast_in_place(&state->list, request, ut->tmpl) < 0) { RPEDEBUG("Failed casting expansion"); - RETURN_UNLANG_OK; + RETURN_UNLANG_FAIL; } if (state->out) fr_value_box_list_move(state->out, &state->list); -- 2.47.3