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);
/* 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);