From 2cb83c3ff13782a8f3abcecdf8f0212464081141 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 8 Dec 2025 09:25:40 +0100 Subject: [PATCH] Correct comment Signed-off-by: Otto Moerbeek --- pdns/recursordist/recursor_cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/recursor_cache.cc b/pdns/recursordist/recursor_cache.cc index a946ffda61..da217a66d4 100644 --- a/pdns/recursordist/recursor_cache.cc +++ b/pdns/recursordist/recursor_cache.cc @@ -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); -- 2.47.3