From: Remi Gacogne Date: Mon, 26 Jun 2017 15:17:08 +0000 (+0200) Subject: rec: Compute the zone cuts before trying to validate a cached entry X-Git-Tag: rec-4.1.0-alpha1~50^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa30ad7eeeedd61708987c59d56021afa8a7ba0d;p=thirdparty%2Fpdns.git rec: Compute the zone cuts before trying to validate a cached entry --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 8dd6d0dfd3..95123efddc 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -823,6 +823,9 @@ bool SyncRes::doCNAMECacheCheck(const DNSName &qname, const QType &qtype, vector if (validationEnabled() && wasAuth && state == Indeterminate && d_requireAuthData) { /* This means we couldn't figure out the state when this entry was cached, most likely because we hadn't computed the zone cuts yet. */ + /* make sure they are computed before validating */ + computeZoneCuts(qname, g_rootdnsname, depth); + vState recordState = getValidationStatus(qname); if (recordState == Secure) { LOG(prefix<