]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Pacify coverity (CID #1660567)
authorNick Porter <nick@portercomputing.co.uk>
Tue, 29 Jul 2025 08:14:18 +0000 (09:14 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 29 Jul 2025 08:14:18 +0000 (09:14 +0100)
src/lib/unlang/try.c

index 3d60ced7fdaebfe3c0b4ec05aa8adbd0f6e103c1..aa1be92f8d61909a1a4d7c7280b0dd1a976d15d6 100644 (file)
@@ -33,6 +33,7 @@ static unlang_action_t skip_to_catch(UNUSED unlang_result_t *p_result, request_t
        unlang_try_t const      *gext = unlang_generic_to_try(frame->instruction);
 
        fr_assert(frame->instruction->type == UNLANG_TYPE_TRY);
+       fr_assert(rcode < RLM_MODULE_NUMCODES);
 
        /*
         *      Push the one "catch" section that we want to run.  Once it's done, it will pop, return to us,
@@ -210,7 +211,7 @@ static unlang_t *unlang_compile_try(unlang_t *parent, unlang_compile_ctx_t *unla
         *      If the child is returning for that action, ensure that _we_ aren't returning.
         *
         *      Note that as above, reject / fail / invalid / disallow / timeout are errors, and cause the
-        *      child to immediately return.  All other rcodes 
+        *      child to immediately return.  All other rcodes
         */
        for (i = 0; i < RLM_MODULE_NUMCODES; i++) {
                /*