]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Check rcode is in the acceptable range (CID #1649513)
authorNick Porter <nick@portercomputing.co.uk>
Thu, 19 Jun 2025 08:23:45 +0000 (09:23 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 19 Jun 2025 08:35:52 +0000 (09:35 +0100)
src/lib/unlang/catch.c

index e49ef4d0863f412bd3ec55b27395b03abf16eb27..5aa85e517541afb8861b1483586ae9528f003280 100644 (file)
@@ -89,6 +89,8 @@ unlang_action_t unlang_interpret_skip_to_catch(UNUSED unlang_result_t *p_result,
                        return frame_set_next(frame, unlang);
                }
 
+               if (rcode >= RLM_MODULE_NUMCODES) continue;
+
                c = unlang_generic_to_catch(unlang);
                if (c->catching[rcode]) break;
        }