]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove special cases for "instantiate", it no longer exists
authorAlan T. DeKok <aland@freeradius.org>
Wed, 3 Nov 2021 16:30:24 +0000 (12:30 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 4 Nov 2021 14:56:57 +0000 (10:56 -0400)
src/lib/server/cf_file.c

index 921c586fb3c5189ab20c01d9b7b36a9a84f429de..49cd14c1e64753db338074f11013af56d54d4dcd 100644 (file)
@@ -1839,15 +1839,8 @@ static int parse_input(cf_stack_t *stack)
                 *      statements.  And for those, "unlang"
                 *      statements are only allowed in child
                 *      subsection.
-                *
-                *      This isn't _strictly_ true for "instantiate",
-                *      as we allow "group", "redundant", and a few
-                *      more things there.  But only allow "if" as a
-                *      keyword when it's inside of another grouping
-                *      section.
                 */
                if (!parent->allow_unlang && !parent->item.parent) {
-                       if (strcmp(css->name1, "instantiate") == 0) css->allow_unlang = 2;
                        if (strcmp(css->name1, "server") == 0) css->allow_unlang = 2;
                        if (strcmp(css->name1, "policy") == 0) css->allow_unlang = 2;