]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
failed cast is fail, not OK
authorAlan T. DeKok <aland@freeradius.org>
Sun, 6 Jul 2025 13:26:23 +0000 (09:26 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 6 Jul 2025 13:26:43 +0000 (09:26 -0400)
src/lib/unlang/tmpl.c

index 83e677cd6770dd8eb107e8d2d30890b85d385044..70debbe391b43555d8882e10702c9020086dc6c7 100644 (file)
@@ -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);