mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 00:43:21 -04:00
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:
parent
d47aeb96d4
commit
470847a527
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue