]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Coverity 1469729 Explicit null dereferenced: bail is SOA isn't set
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 29 Apr 2022 07:43:38 +0000 (09:43 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 29 Apr 2022 07:52:07 +0000 (09:52 +0200)
pdns/zonemd.cc

index 942447837381ca81b455f83bdf5dcd852aad7b15..0688323ac275081a5dc3e54515bee4f6fd571a39 100644 (file)
@@ -159,6 +159,9 @@ void pdns::ZoneMD::verify(bool& validationDone, bool& validationOK)
   validationDone = false;
   validationOK = false;
 
+  if (!d_soaRecordContent) {
+    return;
+  }
   // Get all records and remember RRSets and TTLs
 
   // Determine which digests to compute based on accepted zonemd records present