From: Alan T. DeKok Date: Thu, 10 Oct 2019 17:01:00 +0000 (-0400) Subject: use mod_type for empty keywords if they're not a group X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=264a67cf426d41b66ab6a88708a79895505d318e;p=thirdparty%2Ffreeradius-server.git use mod_type for empty keywords if they're not a group --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index 4b019736b49..ef1351f0227 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -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); diff --git a/src/tests/keywords/redundant-error b/src/tests/keywords/redundant-empty similarity index 100% rename from src/tests/keywords/redundant-error rename to src/tests/keywords/redundant-empty