]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Skip to correct next frame when there is no matching 'catch'
authorNick Porter <nick@portercomputing.co.uk>
Thu, 12 Sep 2024 19:18:58 +0000 (20:18 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 12 Sep 2024 19:18:58 +0000 (20:18 +0100)
src/lib/unlang/catch.c

index a5f5934e1452ce4ec498fb3e7a611cf6466787a6..63686af8ff32c5e22f8b095862cbfdab73451909 100644 (file)
@@ -98,6 +98,7 @@ unlang_action_t unlang_interpret_skip_to_catch(rlm_rcode_t *p_result, request_t
                if (unlang->type != UNLANG_TYPE_CATCH) {
                        REDEBUG("Failed to 'catch' error %s",
                                fr_table_str_by_value(mod_rcode_table, *p_result, "<invalid>"));
+                       frame->next = unlang;
                        return UNLANG_ACTION_CALCULATE_RESULT;
                }