Permalink
Browse files

only zones with an active ksk are secure

  • Loading branch information...
1 parent d02744f commit 9799ef525b74bc5fe11386ea6a49477a7c8c7660 @mind04 mind04 committed with mind04 Nov 25, 2014
Showing with 0 additions and 14 deletions.
  1. +0 −14 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) {

0 comments on commit 9799ef5

Please sign in to comment.