From: Nick Porter Date: Thu, 19 Jun 2025 08:23:45 +0000 (+0100) Subject: Check rcode is in the acceptable range (CID #1649513) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fff16f74c520fb1ba3fde2db398f76cd4f1cb84;p=thirdparty%2Ffreeradius-server.git Check rcode is in the acceptable range (CID #1649513) --- diff --git a/src/lib/unlang/catch.c b/src/lib/unlang/catch.c index e49ef4d0863..5aa85e51754 100644 --- a/src/lib/unlang/catch.c +++ b/src/lib/unlang/catch.c @@ -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; }