From: Kees Monshouwer Date: Thu, 14 Mar 2019 22:51:23 +0000 (+0100) Subject: auth: Rectify for ent records in narrow zones was slightly wrong. X-Git-Tag: dnsdist-1.4.0-alpha1~55^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=666c721173d00d55953b86941099874867bae2c3;p=pdns auth: Rectify for ent records in narrow zones was slightly wrong. --- diff --git a/pdns/dbdnsseckeeper.cc b/pdns/dbdnsseckeeper.cc index 2f63af582..1eef0fc88 100644 --- a/pdns/dbdnsseckeeper.cc +++ b/pdns/dbdnsseckeeper.cc @@ -692,7 +692,7 @@ bool DNSSECKeeper::rectifyZone(const DNSName& zone, string& error, string& info, } set nsec3set; - if (haveNSEC3 && !narrow) { + if (haveNSEC3) { for (auto &loopRR: rrs) { bool skip=false; DNSName shorter = loopRR.qname; @@ -743,12 +743,12 @@ bool DNSSECKeeper::rectifyZone(const DNSName& zone, string& error, string& info, if(haveNSEC3) // NSEC3 { - if(!narrow && nsec3set.count(qname)) { - ordername=DNSName(toBase32Hex(hashQNameWithSalt(ns3pr, qname))); - if(!realrr) + if(nsec3set.count(qname)) { + if(!narrow) + ordername=DNSName(toBase32Hex(hashQNameWithSalt(ns3pr, qname))); + if(!realrr && !isOptOut) auth=true; - } else if(!realrr) - auth=false; + } } else if (realrr && securedZone) // NSEC ordername=qname.makeRelative(zone);