]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Don't enter wildcard qname's into the cache in the ZoneToCache function 13866/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 6 Mar 2024 12:22:02 +0000 (13:22 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 6 Mar 2024 12:22:02 +0000 (13:22 +0100)
pdns/recursordist/rec-zonetocache.cc

index 415933ca4bc701e767a5660a142749fdf2eb7b34..46488f43ecb07b13f31448005350467913ae08ef 100644 (file)
@@ -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: