]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
might as well allow actions{...} in catch {...}
authorAlan T. DeKok <aland@freeradius.org>
Sat, 26 Jul 2025 18:52:08 +0000 (14:52 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 28 Jul 2025 10:15:02 +0000 (06:15 -0400)
tho I guess this check should really be a flag in the unlang op
structure.

src/lib/unlang/compile.c

index 793ac4433edb0d66044e8b089f51975b5b6cd15f..d1b69681861451a544d195cb3f5d171b2c66c704 100644 (file)
@@ -1264,6 +1264,7 @@ static bool compile_action_subsection(unlang_t *c, CONF_SECTION *cs, CONF_SECTIO
         */
        switch (c->type) {
        case UNLANG_TYPE_CASE:
+       case UNLANG_TYPE_CATCH:
        case UNLANG_TYPE_IF:
        case UNLANG_TYPE_ELSE:
        case UNLANG_TYPE_ELSIF: