]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
When no rpz cache is used and no refresh time is specified, use 9301/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>
Mon, 6 Jul 2020 13:55:53 +0000 (15:55 +0200)
the refresh time read on the initial load of the zone.

Should fix #9299.

pdns/rpzloader.cc

index 80b4e0040145a420f60aea0dc9e4e9b7d1360baa..65ae7f5cebd04331b8a0650dd0107e9916e1e5e9 100644 (file)
@@ -378,6 +378,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) {