From: Kees Monshouwer Date: Fri, 15 Mar 2019 11:14:57 +0000 (+0100) Subject: auth: small optimization in the rectify code for optout narrow zones X-Git-Tag: dnsdist-1.4.0-alpha1~55^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2885750af64e945ba475fd02f7f3cd5194052202;p=pdns auth: small optimization in the rectify code for optout narrow zones --- diff --git a/pdns/dbdnsseckeeper.cc b/pdns/dbdnsseckeeper.cc index 1eef0fc88..e4aa0b528 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) { + if (haveNSEC3 && (!narrow || !isOptOut)) { for (auto &loopRR: rrs) { bool skip=false; DNSName shorter = loopRR.qname;