From c3f74eebf9cc3bcf21c3c237adacc0f35d81b153 Mon Sep 17 00:00:00 2001 From: Otto Date: Tue, 3 Aug 2021 09:08:09 +0200 Subject: [PATCH] Check in more places if the config policy has been updated before using or modifying it. (cherry picked from commit 0c98e3de2cf1daae3f7034803668c1ac10fefe49) --- pdns/rpzloader.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pdns/rpzloader.cc b/pdns/rpzloader.cc index 212c926052..7f6a78cdca 100644 --- a/pdns/rpzloader.cc +++ b/pdns/rpzloader.cc @@ -458,7 +458,15 @@ void RPZIXFRTracker(const std::vector& masters, boost::optionalgeneration != 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 */ @@ -529,6 +537,10 @@ void RPZIXFRTracker(const std::vector& masters, boost::optionalgeneration != configGeneration) { + g_log<