]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Correct comment 16614/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 8 Dec 2025 08:25:40 +0000 (09:25 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 8 Dec 2025 08:25:40 +0000 (09:25 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/recursor_cache.cc

index a946ffda61dd5b96525cd37badb105ae3a76591c..da217a66d4eb7230933024a3fcb82b0c8f9cd7a9 100644 (file)
@@ -465,7 +465,7 @@ time_t MemRecursorCache::get(time_t now, const DNSName& qname, const QType qtype
       auto entryAAAA = getEntryUsingECSIndex(*lockedShard, now, qname, QType::AAAA, requireAuth, who, serveStale);
       if (entryAAAA != lockedShard->d_map.end()) {
         if (authorityRecs != nullptr) {
-          // For the case the loop iterates multiple times
+          // For the case the first call filled authorityRecs
           *authorityRecs = s_emptyAuthRecs;
         }
         time_t ttdAAAA = handleHit(now, *lockedShard, entryAAAA, qname, origTTL, res, signatures, authorityRecs, variable, cachedState, wasAuth, fromAuthZone, extra);