From 05a4985708988eb10f9291a40406b205e7d5d5b2 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 28 Sep 2022 09:35:22 +0200 Subject: [PATCH] rec: when an expired nsec3 entry is seen, move it to the front of the expiry queue --- pdns/recursordist/aggressive_nsec.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2