]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Log invalid RPZ content when obtained via IXFR 12169/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 10 Oct 2022 15:47:46 +0000 (17:47 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 4 Nov 2022 09:19:45 +0000 (10:19 +0100)
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

index 262c12091cc50442f1355005d01d46f36b690876..c5f4f1095083877f3dda3cd66eed2ddc56b081c0 100644 (file)
@@ -551,5 +551,8 @@ void RPZIXFRTracker(const std::vector<ComboAddress>& masters, boost::optional<DN
     catch (const std::exception& e) {
       g_log << Logger::Error << "Error while applying the update received over XFR for "<<zoneName<<", skipping the update: "<< e.what() <<endl;
     }
+    catch (const PDNSException& e) {
+      g_log << Logger::Error << "Error while applying the update received over XFR for "<<zoneName<<", skipping the update: "<< e.reason <<endl;
+    }
   }
 }