From: Otto Moerbeek Date: Mon, 13 Jul 2020 15:01:22 +0000 (+0200) Subject: Fix merge X-Git-Tag: rec-4.2.4~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9333%2Fhead;p=thirdparty%2Fpdns.git Fix merge --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index b23096a09b..410a606bc4 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1792,7 +1792,8 @@ vState SyncRes::getDSRecords(const DNSName& zone, dsmap_t& ds, bool taOnly, unsi std::vector 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);