]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Make sure the received SOA comes from a "." auth 5252/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Apr 2017 15:47:52 +0000 (17:47 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Apr 2017 15:47:52 +0000 (17:47 +0200)
pdns/syncres.cc

index 6d49dbf740470727e8275e8b0510f131fbc22701..d9d09c1023a69d9fece92e2b2a5b879f544bff72 100644 (file)
@@ -1235,7 +1235,7 @@ bool SyncRes::processRecords(const std::string& prefix, const DNSName& qname, co
         ne.d_auth = rec.d_name;
         harvestNXRecords(lwr.d_records, ne);
         t_sstorage->negcache.add(ne);
-        if(s_rootNXTrust && ne.d_auth.isRoot()) { // We should check if it was forwarded here, see issue #5107
+        if(s_rootNXTrust && ne.d_auth.isRoot() && auth.isRoot()) {
           ne.d_name = ne.d_name.getLastLabel();
           t_sstorage->negcache.add(ne);
         }