From eaa76cf240f2fb34bfa0a24e8b0483c83f94fd34 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 10 Oct 2022 17:47:46 +0200 Subject: [PATCH] rec: Log invalid RPZ content when obtained via IXFR That kind of content was properly logged and handled when received during the initial loading (AXFR) but not when received via an incremental update. (cherry picked from commit 55a99233728fc01e3946a97fb8dbb073a3003622) --- pdns/rpzloader.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdns/rpzloader.cc b/pdns/rpzloader.cc index a92ee3f8b9..a528c25c2e 100644 --- a/pdns/rpzloader.cc +++ b/pdns/rpzloader.cc @@ -599,5 +599,9 @@ void RPZIXFRTracker(const std::vector& primaries, const boost::opt SLOG(g_log << Logger::Error << "Error while applying the update received over XFR for "<error(Logr::Error, e.what(), "Exception while applying the update received over XFR, skipping", "exception", Logging::Loggable("std::exception"))); } + catch (const PDNSException& e) { + SLOG(g_log << Logger::Error << "Error while applying the update received over XFR for "<error(Logr::Error, e.reason, "Exception while applying the update received over XFR, skipping", "exception", Logging::Loggable("PDNSException"))); + } } } -- 2.47.2