]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3073] Rremove incorrect checks for empty() that caused test failures
authorKean Johnston <kean@isc.org>
Tue, 22 Oct 2013 10:03:59 +0000 (12:03 +0200)
committerKean Johnston <kean@isc.org>
Tue, 22 Oct 2013 10:03:59 +0000 (12:03 +0200)
src/lib/datasrc/cache_config.cc

index 86c0125d3142f5866d8100fc2356690d29499c4d..ec3cfeba827412477200658f8271b936f47f7c29 100644 (file)
@@ -106,10 +106,6 @@ CacheConfig::CacheConfig(const std::string& datasrc_type,
         }
 
         const ConstElementPtr zones = datasrc_conf.get("cache-zones");
-        if (zones->empty()) {
-            return;
-        }
-
         for (size_t i = 0; i < zones->size(); ++i) {
             const dns::Name zone_name(zones->get(i)->stringValue());
             if (!zone_config_.insert(Zones::value_type(zone_name,