From: Alan T. DeKok Date: Sun, 6 Jul 2025 13:26:23 +0000 (-0400) Subject: failed cast is fail, not OK X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6030c97597993dac4aa2763779082c528d0998ca;p=thirdparty%2Ffreeradius-server.git failed cast is fail, not OK --- diff --git a/src/lib/unlang/tmpl.c b/src/lib/unlang/tmpl.c index 83e677cd677..70debbe391b 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);