From: Otto Moerbeek Date: Wed, 6 Mar 2024 12:22:02 +0000 (+0100) Subject: rec: Don't enter wildcard qname's into the cache in the ZoneToCache function X-Git-Tag: dnsdist-1.10.0-alpha0~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13866%2Fhead;p=thirdparty%2Fpdns.git rec: Don't enter wildcard qname's into the cache in the ZoneToCache function --- diff --git a/pdns/recursordist/rec-zonetocache.cc b/pdns/recursordist/rec-zonetocache.cc index 415933ca4b..46488f43ec 100644 --- a/pdns/recursordist/rec-zonetocache.cc +++ b/pdns/recursordist/rec-zonetocache.cc @@ -403,6 +403,9 @@ void ZoneData::ZoneToCache(const RecZoneToCache::Config& config) d_now = time(nullptr); for (const auto& [key, v] : d_all) { const auto& [qname, qtype] = key; + if (qname.isWildcard()) { + continue; + } switch (qtype) { case QType::NSEC: case QType::NSEC3: