From f37a904f4cc53ccb74b5904948b819920401ed24 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 21 Jan 2022 14:42:18 +0100 Subject: [PATCH] rec: The NSEC3 ancestor check must be done against the original owner name --- pdns/validate.cc | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) 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!"<