From: Otto Moerbeek Date: Wed, 28 Sep 2022 07:35:22 +0000 (+0200) Subject: rec: when an expired nsec3 entry is seen, move it to the front of the expiry queue X-Git-Tag: rec-4.9.0-alpha0~17^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12038%2Fhead;p=thirdparty%2Fpdns.git rec: when an expired nsec3 entry is seen, move it to the front of the expiry queue --- diff --git a/pdns/recursordist/aggressive_nsec.cc b/pdns/recursordist/aggressive_nsec.cc index c562f2aa4a..c0b1d6e182 100644 --- a/pdns/recursordist/aggressive_nsec.cc +++ b/pdns/recursordist/aggressive_nsec.cc @@ -400,7 +400,7 @@ bool AggressiveNSECCache::getNSEC3(time_t now, std::shared_ptrd_entries.project(it); if (it->d_ttd <= now) { - moveCacheItemToBack(zoneEntry->d_entries, firstIndexIterator); + moveCacheItemToFront(zoneEntry->d_entries, firstIndexIterator); return false; }