]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Disable refresh almost expired inside getAddrs() 11419/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 21 Mar 2022 10:24:14 +0000 (11:24 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 21 Mar 2022 10:24:14 +0000 (11:24 +0100)
pdns/syncres.cc

index 57a721b810b53425521f530c9a653fd69141ca23..a8b5bcd8edf0edc55e2977f455705207e7a12266 100644 (file)
@@ -1086,6 +1086,7 @@ vector<ComboAddress> SyncRes::getAddrs(const DNSName &qname, unsigned int depth,
   d_DNSSECValidationRequested = false;
   d_followCNAME = true;
 
+  const bool oldRefresAlmostExpired = setRefreshAlmostExpired(false);
   try {
     vState newState = vState::Indeterminate;
     res_t resv4;
@@ -1132,6 +1133,7 @@ vector<ComboAddress> SyncRes::getAddrs(const DNSName &qname, unsigned int depth,
     /* we ignore a policy hit while trying to retrieve the addresses
        of a NS and keep processing the current query */
   }
+  setRefreshAlmostExpired(oldRefresAlmostExpired);
 
   if (ret.empty() && d_outqueries > startqueries) {
     // We did 1 or more outgoing queries to resolve this NS name but returned empty handed