rib: Avoid use of orphaned ValidationPolicyConfig

Change-Id: Id1fa969a2e4b3c88a21cacdbbeda32d17834fe6f
Refs: #4759
This commit is contained in:
Alexander Afanasyev committed 2018-10-17 12:00:17 -04:00
1 parent 5ba7dfc10f
commit 3c0c035609
1 file changed
+2 -2
+2 -2
View File
@@ -162,8 +162,8 @@ Service::checkConfig(const ConfigSection& section, const std::string& filename)
const std::string& key = item.first;
const ConfigSection& value = item.second;
if (key == CFG_LOCALHOST_SECURITY || key == CFG_LOCALHOP_SECURITY) {
ndn::security::v2::validator_config::ValidationPolicyConfig policy;
policy.load(value, filename);
ndn::ValidatorConfig testValidator(m_face);
testValidator.load(value, filename);
}
else if (key == CFG_PREFIX_PROPAGATE) {
// AutoPrefixPropagator does not support config dry-run