From 666c721173d00d55953b86941099874867bae2c3 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Thu, 14 Mar 2019 23:51:23 +0100 Subject: [PATCH] auth: Rectify for ent records in narrow zones was slightly wrong. --- pdns/dbdnsseckeeper.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pdns/dbdnsseckeeper.cc b/pdns/dbdnsseckeeper.cc index 2f63af5824..1eef0fc882 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); -- 2.39.5