]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] restore test for unknown meta types
authorEvan Hunt <each@isc.org>
Wed, 7 Oct 2015 07:28:17 +0000 (00:28 -0700)
committerEvan Hunt <each@isc.org>
Wed, 7 Oct 2015 07:28:17 +0000 (00:28 -0700)
- this test was incorrectly removed from the 9.11 branch some time ago,
  but has remained in the maintenance branches

lib/dns/rdata.c

index a2984129a8c716d39d2e26ff28e30a8ae21e4c91..107813bbe3b83277428cf80b7d9cf321782258f9 100644 (file)
@@ -1254,6 +1254,8 @@ unsigned int
 dns_rdatatype_attributes(dns_rdatatype_t type)
 {
        RDATATYPE_ATTRIBUTE_SW
+       if (type >= (dns_rdatatype_t)128 && type < (dns_rdatatype_t)255)
+               return (DNS_RDATATYPEATTR_UNKNOWN | DNS_RDATATYPEATTR_META);
        return (DNS_RDATATYPEATTR_UNKNOWN);
 }