]> granicus.if.org Git - pdns/commitdiff
only zones with an active ksk are secure
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 25 Nov 2014 15:15:01 +0000 (16:15 +0100)
committermind04 <mind04@monshouwer.org>
Tue, 25 Nov 2014 15:16:33 +0000 (16:16 +0100)
pdns/dbdnsseckeeper.cc

index c1d3ba4f7b903a72a8b556b2d8ee20af6de66e27..0efb48a57ef8b9ddb6fd2b6a8215c4dccbec6c2c 100644 (file)
@@ -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) {