]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Fix Coverity 1522436 Dereference null return value 13363/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 13 Oct 2023 08:10:42 +0000 (10:10 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 13 Oct 2023 08:10:42 +0000 (10:10 +0200)
pdns/recursordist/rec-zonetocache.cc

index 10936401c0fd0ccda0acc3ff663f3bc6c0989477..32bae21b5a0fe9a4f524d75fc7c8e49d442f93c3 100644 (file)
@@ -100,6 +100,9 @@ void ZoneData::parseDRForCache(DNSRecord& dnsRecord)
     break;
   case QType::RRSIG: {
     const auto rrsig = getRR<RRSIGRecordContent>(dnsRecord);
+    if (rrsig == nullptr) {
+      break;
+    }
     const auto sigkey = pair(key.first, rrsig->d_type);
     auto found = d_sigs.find(sigkey);
     if (found != d_sigs.end()) {