]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update-policy 'subdomain' was incorrectly treated as 'zonesub'
authorMark Andrews <marka@isc.org>
Wed, 29 Jul 2020 13:36:03 +0000 (23:36 +1000)
committerMichał Kępień <michal@isc.org>
Wed, 5 Aug 2020 13:54:50 +0000 (15:54 +0200)
resulting in names outside the specified subdomain having the wrong
restrictions for the given key.

bin/named/zoneconf.c

index 8abbbc462b1a4530ab7066c9fd0b6d8661f8802d..39ef13fdcfaf4eca3e499ea6f4cdba0c2a76fc43 100644 (file)
@@ -252,7 +252,8 @@ configure_zone_ssutable(const cfg_obj_t *zconfig, dns_zone_t *zone,
 
                str = cfg_obj_asstring(matchtype);
                CHECK(dns_ssu_mtypefromstring(str, &mtype));
-               if (mtype == dns_ssumatchtype_subdomain) {
+               if (mtype == dns_ssumatchtype_subdomain &&
+                   strcasecmp(str, "zonesub") == 0) {
                        usezone = true;
                }