]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Log invalid RPZ content when obtained via IXFR 12170/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:22:49 +0000 (10:22 +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 03d8228126289c00bdcc2239f258cdfb8c821b83..19a84b0b667385835ef252fe731e0a480a90580a 100644 (file)
@@ -586,5 +586,8 @@ void RPZIXFRTracker(const std::vector<ComboAddress>& primaries, const boost::opt
     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;
+    }
   }
 }