]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
DNAME: remove useless piece of code
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 5 Mar 2019 16:02:07 +0000 (17:02 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 5 Mar 2019 16:02:07 +0000 (17:02 +0100)
pdns/syncres.cc

index 81fa4691600818168641c45aa4f38061c851c92e..4456a48156e2f0951e91bf3feca87bb261505ca8 100644 (file)
@@ -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.