From: Kees Monshouwer Date: Thu, 23 Feb 2017 23:37:05 +0000 (+0100) Subject: minor cleanup in the afxr-rectify code X-Git-Tag: auth-4.0.4-rc1~3^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357b42c510bec240728ea916e331c8abc8d859c3;p=thirdparty%2Fpdns.git minor cleanup in the afxr-rectify code --- diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index e588eabd64..c4c047147d 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -784,7 +784,6 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr q, int ou } else { if (rr.qtype.getCode()) L< q, int ou do { if (shorter==target) // apex is always auth continue; - if(nsset.count(shorter) && !(rr.qname==shorter && rr.qtype.getCode() == QType::DS)) + if(nsset.count(shorter) && !(rr.qname==shorter && rr.qtype.getCode() == QType::DS)) { rr.auth=false; + continue; + } } while(shorter.chopOff()); - } else - continue; + } } if(NSEC3Zone) {