When configuring zone ACL, check template too

When zone templates were introduced, we forgot to add parsing ACL
from templates in 'configure_zone_acl()'. This commit fixes the
omission.
This commit is contained in:
Matthijs Mekking 2026-05-28 15:13:26 +02:00
parent d47aeb96d4
commit 470847a527

View file

@ -139,8 +139,14 @@ configure_zone_acl(const cfg_obj_t *zconfig, const cfg_obj_t *vconfig,
if (config != NULL && maps[i] != NULL) {
const cfg_obj_t *toptions = named_zone_templateopts(config,
maps[i]);
/* Check to see if ACL is defined within template */
if (toptions != NULL) {
maps[i++] = toptions;
(void)cfg_map_get(toptions, aclname, &aclobj);
if (aclobj != NULL) {
aclp = NULL;
goto parse_acl;
}
}
}