From: Pieter Lexis Date: Tue, 5 Mar 2019 16:02:07 +0000 (+0100) Subject: DNAME: remove useless piece of code X-Git-Tag: rec-4.2.0-beta1~6^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=623b30032972ce6705d72ba9448ceeaa817651df;p=thirdparty%2Fpdns.git DNAME: remove useless piece of code --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 81fa469160..4456a48156 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -2405,10 +2405,6 @@ RCode::rcodes_ SyncRes::updateCacheFromRecords(unsigned int depth, LWResult& lwr expectSignature = false; } - if (isDNAMEAnswer && !isAA && i->first.place == DNSResourceRecord::ANSWER && i->first.type == QType::DNAME && qname.isPartOf(i->first.name)) { - isAA = true; - } - if (isCNAMEAnswer && i->first.place == DNSResourceRecord::AUTHORITY && i->first.type == QType::NS && auth == i->first.name) { /* These NS can't be authoritative since we have a CNAME answer for which (see above) only the record describing that alias is necessarily authoritative.