]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: when an expired nsec3 entry is seen, move it to the front of the expiry queue 12038/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 28 Sep 2022 07:35:22 +0000 (09:35 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 28 Sep 2022 07:35:22 +0000 (09:35 +0200)
pdns/recursordist/aggressive_nsec.cc

index c562f2aa4a40ec261e2fafcf8e435cda2e6f2f44..c0b1d6e1822b2024dc4cb8ed77cb1ff0f7274ced 100644 (file)
@@ -400,7 +400,7 @@ bool AggressiveNSECCache::getNSEC3(time_t now, std::shared_ptr<LockGuarded<Aggre
 
     auto firstIndexIterator = zoneEntry->d_entries.project<ZoneEntry::OrderedTag>(it);
     if (it->d_ttd <= now) {
-      moveCacheItemToBack<ZoneEntry::SequencedTag>(zoneEntry->d_entries, firstIndexIterator);
+      moveCacheItemToFront<ZoneEntry::SequencedTag>(zoneEntry->d_entries, firstIndexIterator);
       return false;
     }