]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
templates can have update sections
authorAlan T. DeKok <aland@freeradius.org>
Wed, 28 Aug 2024 15:59:58 +0000 (11:59 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 28 Aug 2024 16:00:20 +0000 (12:00 -0400)
src/lib/server/cf_file.c

index 686f7d8a7d7528c778ba4babbc34440d564d85d7..b0462cf1c4ffe356a62f64e8da522ed9168db01d 100644 (file)
@@ -2369,6 +2369,7 @@ alloc_section:
                        if (strcmp(css->name1, "server") == 0) css->unlang = CF_UNLANG_SERVER;
                        if (strcmp(css->name1, "policy") == 0) css->unlang = CF_UNLANG_POLICY;
                        if (strcmp(css->name1, "modules") == 0) css->unlang = CF_UNLANG_MODULES;
+                       if (strcmp(css->name1, "template") == 0) css->unlang = CF_UNLANG_CAN_HAVE_UPDATE;
 
                } else if ((cf_item_to_section(parent->item.parent)->unlang == CF_UNLANG_MODULES) &&
                           (strcmp(css->name1, "update") == 0)) {