]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
When no rpz cache is used and no refresh time is specified, use 9304/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 6 Jul 2020 13:55:53 +0000 (15:55 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 7 Jul 2020 08:26:05 +0000 (10:26 +0200)
the refresh time read on the initial load of the zone.

Should fix #9299.

(cherry picked from commit 3f4d728767f3924b4b96b22e6ae312ba8decdfe9)

pdns/rpzloader.cc

index 14d8af1bbd5a6054f7e000397c02a740f5cc29dd..7e073dafb552dfc8d873137e3205a518d5a3b4be 100644 (file)
@@ -377,6 +377,8 @@ void RPZIXFRTracker(const std::vector<ComboAddress>& masters, boost::optional<DN
         sr = loadRPZFromServer(master, zoneName, newZone, defpol, defpolOverrideLocal, maxTTL, tt, maxReceivedBytes, localAddress, axfrTimeout);
         newZone->setSerial(sr->d_st.serial);
         newZone->setRefresh(sr->d_st.refresh);
+        // This period gets used below this loop
+        oldZone->setRefresh(sr->d_st.refresh);
         setRPZZoneNewState(polName, sr->d_st.serial, newZone->size(), true);
 
         g_luaconfs.modify([zoneIdx, &newZone](LuaConfigItems& lci) {