From: Otto Moerbeek Date: Fri, 20 Dec 2019 09:08:50 +0000 (+0100) Subject: QName Minimization consults the cache first to see work needs to X-Git-Tag: auth-4.3.0-beta1~55^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F8648%2Fhead;p=thirdparty%2Fpdns.git QName Minimization consults the cache first to see work needs to be done. Via doCacheCheck() this can lead to a call to computeZoneCuts() which might/does not work properly on only cached records, so always make sure it can go out if needed. Should fix #8642. --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index e9371524c1..4e031a002a 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -2134,12 +2134,15 @@ void SyncRes::computeZoneCuts(const DNSName& begin, const DNSName& end, unsigned return; } + const bool oldCacheOnly = setCacheOnly(false); + dsmap_t ds; vState cutState = getDSRecords(end, ds, false, depth); LOG(d_prefix<<": setting cut state for "<& dnskeys, const std::vector >& signatures, unsigned int depth)