From 4ed3a4f6dd12d4f7f59f50cc2e4c6f97f813c9ac Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Tue, 25 Nov 2014 16:15:01 +0100 Subject: [PATCH] only zones with an active ksk are secure --- pdns/dbdnsseckeeper.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pdns/dbdnsseckeeper.cc b/pdns/dbdnsseckeeper.cc index c1d3ba4f7..0efb48a57 100644 --- a/pdns/dbdnsseckeeper.cc +++ b/pdns/dbdnsseckeeper.cc @@ -53,21 +53,7 @@ bool DNSSECKeeper::isSecuredZone(const std::string& zone) { if(isPresigned(zone)) return true; - - if(!((++s_ops) % 100000)) { - cleanup(); - } - { - ReadLock l(&s_keycachelock); - keycache_t::const_iterator iter = s_keycache.find(zone); - if(iter != s_keycache.end() && iter->d_ttd > (unsigned int)time(0)) { - if(iter->d_keys.empty()) - return false; - else - return true; - } - } keyset_t keys = getKeys(zone, true); // does the cache BOOST_FOREACH(keyset_t::value_type& val, keys) { -- 2.50.0