From: Arran Cudbard-Bell Date: Fri, 19 Mar 2021 20:30:20 +0000 (+0000) Subject: Return an error code when we can't find an unlang_group_t associated with a CS X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=564bd124beb6032369eec814f7d2fb9003930540;p=thirdparty%2Ffreeradius-server.git Return an error code when we can't find an unlang_group_t associated with a CS --- diff --git a/src/lib/unlang/interpret.c b/src/lib/unlang/interpret.c index 410e9dbecdb..870585ad5fb 100644 --- a/src/lib/unlang/interpret.c +++ b/src/lib/unlang/interpret.c @@ -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); }