]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use mod_type for empty keywords if they're not a group
authorAlan T. DeKok <aland@freeradius.org>
Thu, 10 Oct 2019 17:01:00 +0000 (13:01 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 10 Oct 2019 17:01:00 +0000 (13:01 -0400)
src/lib/unlang/compile.c
src/tests/keywords/redundant-empty [moved from src/tests/keywords/redundant-error with 100% similarity]

index 4b019736b491b1b788c6e543bdb8ed6eb43a4b4f..ef1351f0227827aaa539896f45b784956ff2d925 100644 (file)
@@ -1830,7 +1830,7 @@ static unlang_t *compile_empty(unlang_t *parent, unlang_compile_t *unlang_ctx, C
         *      *intepreter* type is GROUP, even if the *debug names*
         *      are something else.
         */
-       g = group_allocate(parent, cs, UNLANG_TYPE_GROUP);
+       g = group_allocate(parent, cs, unlang_ops[mod_type].debug_braces ? UNLANG_TYPE_GROUP : mod_type);
        if (!g) return NULL;
 
        c = unlang_group_to_generic(g);