From: Otto Date: Tue, 3 Aug 2021 07:08:09 +0000 (+0200) Subject: Check in more places if the config policy has been updated before X-Git-Tag: dnsdist-1.7.0-alpha1~71^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10627%2Fhead;p=thirdparty%2Fpdns.git Check in more places if the config policy has been updated before using or modifying it. --- diff --git a/pdns/rpzloader.cc b/pdns/rpzloader.cc index 22b63ef3fa..77cf0926c2 100644 --- a/pdns/rpzloader.cc +++ b/pdns/rpzloader.cc @@ -469,7 +469,15 @@ void RPZIXFRTracker(const std::vector& primaries, boost::optional< try { g_log<generation != configGeneration) { + g_log<dfe.getZone(zoneIdx); + if (!oldZone || oldZone->getDomain() != zoneName) { + g_log< newZone = std::make_shared(*oldZone); /* initialize the current serial to the last one */ @@ -540,6 +548,10 @@ void RPZIXFRTracker(const std::vector& primaries, boost::optional< but we don't want to touch anything else, especially other zones, since they might have been updated by another RPZ IXFR tracker thread. */ + if (luaconfsLocal->generation != configGeneration) { + g_log<