From: Otto Moerbeek Date: Fri, 13 Oct 2023 08:10:42 +0000 (+0200) Subject: rec: Fix Coverity 1522436 Dereference null return value X-Git-Tag: rec-5.0.0-alpha2~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13363%2Fhead;p=thirdparty%2Fpdns.git rec: Fix Coverity 1522436 Dereference null return value --- diff --git a/pdns/recursordist/rec-zonetocache.cc b/pdns/recursordist/rec-zonetocache.cc index 10936401c0..32bae21b5a 100644 --- a/pdns/recursordist/rec-zonetocache.cc +++ b/pdns/recursordist/rec-zonetocache.cc @@ -100,6 +100,9 @@ void ZoneData::parseDRForCache(DNSRecord& dnsRecord) break; case QType::RRSIG: { const auto rrsig = getRR(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()) {