From: Otto Moerbeek Date: Mon, 4 May 2026 10:11:43 +0000 (+0200) Subject: rec: With catalog zone transfers, check if SOA is defined before using X-Git-Tag: rec-5.3.8~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83c76cfe8890e53280f092b7e5188b9da3c8213e;p=thirdparty%2Fpdns.git rec: With catalog zone transfers, check if SOA is defined before using Signed-off-by: Otto Moerbeek --- diff --git a/pdns/recursordist/rec-xfr.cc b/pdns/recursordist/rec-xfr.cc index d50daeacea..96066d5c56 100644 --- a/pdns/recursordist/rec-xfr.cc +++ b/pdns/recursordist/rec-xfr.cc @@ -225,6 +225,10 @@ static shared_ptr loadZoneFromServer(Logr::log_t plogger zone->clear(); throw PDNSException("duplicate PTR values in catalog zone"); } + if (!soaRecordContent) { + zone->clear(); + throw PDNSException("No valid SOA found in catalog zone AXFR"); + } logger->info(Logr::Info, "Zone load completed", "nrecords", Logging::Loggable(nrecords), "soa", Logging::Loggable(soaRecordContent->getZoneRepresentation())); return soaRecordContent; }