2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

[master] normalize domain names for trailing dots

4416.	[bug]		dnssec-keymgr: Domain names in policy files could
			fail to match due to trailing dots. [RT #42807]

Patch submitted by Armin Pech (mail@arminpech.de).
This commit is contained in:
Evan Hunt
2016-07-20 14:35:10 -07:00
parent c4fa8b75c2
commit a870e4e773
2 changed files with 5 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
4416. [bug] dnssec-keymgr: Domain names in policy files could
fail to match due to trailing dots. [RT #42807]
4415. [bug] dnssec-keymgr: Expired/deleted keys were not always
excluded. [RT #42884]

View File

@@ -535,9 +535,9 @@ class dnssec_policy:
def p_zone_policy(self, p):
"zone_policy : ZONE name new_policy policy_option_group SEMI"
self.current.name = p[2]
self.current.name = p[2].rstrip('.')
self.current.is_zone = True
self.zone_policy[p[2].lower()] = self.current
self.zone_policy[p[2].rstrip('.').lower()] = self.current
pass
def p_named_policy(self, p):