From: Alan T. DeKok Date: Wed, 28 Aug 2024 15:59:58 +0000 (-0400) Subject: templates can have update sections X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cb42a0a635de45e64626231ac3bb043c1b8dcac;p=thirdparty%2Ffreeradius-server.git templates can have update sections --- diff --git a/src/lib/server/cf_file.c b/src/lib/server/cf_file.c index 686f7d8a7d7..b0462cf1c4f 100644 --- a/src/lib/server/cf_file.c +++ b/src/lib/server/cf_file.c @@ -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)) {