From 8b278e641827636c8d636af7b98b2837b806e85e 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 (cherry picked from commit 05a4985708988eb10f9291a40406b205e7d5d5b2) --- 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 2f332b6395..8e15223d88 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