From: Otto Moerbeek Date: Fri, 29 Apr 2022 07:43:38 +0000 (+0200) Subject: Coverity 1469729 Explicit null dereferenced: bail is SOA isn't set X-Git-Tag: auth-4.8.0-alpha0~116^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1731fbab9bd067e6f3bc069a5ff944ef8dd86658;p=thirdparty%2Fpdns.git Coverity 1469729 Explicit null dereferenced: bail is SOA isn't set --- diff --git a/pdns/zonemd.cc b/pdns/zonemd.cc index 9424478373..0688323ac2 100644 --- a/pdns/zonemd.cc +++ b/pdns/zonemd.cc @@ -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