]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix merge 9333/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 13 Jul 2020 15:01:22 +0000 (17:01 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 13 Jul 2020 15:01:22 +0000 (17:01 +0200)
pdns/syncres.cc

index b23096a09be9c5f9610726eda4dd3622166d567b..410a606bc423683fa23ad0bf73560b3f736a6d3a 100644 (file)
@@ -1792,7 +1792,8 @@ vState SyncRes::getDSRecords(const DNSName& zone, dsmap_t& ds, bool taOnly, unsi
   std::vector<DNSRecord> dsrecords;
 
   vState state = Indeterminate;
-  const bool oldCacheOnly = setCacheOnly(false);
+  const bool oldCacheOnly = d_cacheonly;
+  setCacheOnly(false);
   int rcode = doResolve(zone, QType(QType::DS), dsrecords, depth + 1, beenthere, state);
   d_skipCNAMECheck = oldSkipCNAME;
   setCacheOnly(oldCacheOnly);
@@ -2068,7 +2069,8 @@ vState SyncRes::getDNSKeys(const DNSName& signer, skeyset_t& keys, unsigned int
   /* following CNAME might lead to us to the wrong DNSKEY */
   bool oldSkipCNAME = d_skipCNAMECheck;
   d_skipCNAMECheck = true;
-  const bool oldCacheOnly = setCacheOnly(false);
+  const bool oldCacheOnly = d_cacheonly;
+  setCacheOnly(false);
   int rcode = doResolve(signer, QType(QType::DNSKEY), records, depth + 1, beenthere, state);
   d_skipCNAMECheck = oldSkipCNAME;
   setCacheOnly(oldCacheOnly);