]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Return an error code when we can't find an unlang_group_t associated with a CS
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 19 Mar 2021 20:30:20 +0000 (20:30 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Mar 2021 15:06:29 +0000 (16:06 +0100)
src/lib/unlang/interpret.c

index 410e9dbecdbd5cdab92ef7935f4231aa9895109a..870585ad5fb5d7ac0ddd364ecebd5ccbe91cb633 100644 (file)
@@ -836,10 +836,10 @@ int unlang_interpret_push_section(request_t *request, CONF_SECTION *cs, rlm_rcod
                if (!instruction) {
                        REDEBUG("Failed to find pre-compiled unlang for section %s %s { ... }",
                                cf_section_name1(cs), cf_section_name2(cs));
+                       return -1;
                }
        }
 
-
        return unlang_interpret_push_instruction(request, instruction, default_rcode, top_frame);
 }