From: Remi Gacogne Date: Fri, 21 Jan 2022 13:42:18 +0000 (+0100) Subject: rec: The NSEC3 ancestor check must be done against the original owner name X-Git-Tag: auth-4.7.0-alpha1~38^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f37a904f4cc53ccb74b5904948b819920401ed24;p=thirdparty%2Fpdns.git rec: The NSEC3 ancestor check must be done against the original owner name --- diff --git a/pdns/validate.cc b/pdns/validate.cc index a35e1148c2..db6eff87d6 100644 --- a/pdns/validate.cc +++ b/pdns/validate.cc @@ -653,10 +653,10 @@ dState getDenial(const cspmap_t &validrrsets, const DNSName& qname, const uint16 continue; } - const DNSName& owner = v.first.first; + const DNSName& hashedOwner = v.first.first; const DNSName signer = getSigner(v.second.signatures); - if (!owner.isPartOf(signer)) { - LOG("Owner "<isSet(QType::NS) && nsec3->isSet(QType::SOA)) { - LOG("However, that NSEC3 is not at the apex and has both the NS and the SOA bits set!"<isSet(QType::NS) && nsec3->isSet(QType::SOA)) { + LOG("However, that NSEC3 is not at the apex and has both the NS and the SOA bits set!"<