pht: validKey must check for key field value len

This commit is contained in:
Simon Désaulniers authored and Adrien Béraud committed 2016-09-01 18:02:23 -04:00
1 parent fe1b8b88e1
commit 7ab64ea0e6
1 file changed
+1 -1
+1 -1
View File
@@ -246,7 +246,7 @@ private:
return k.size() == keySpec_.size() and
std::equal(k.begin(), k.end(), keySpec_.begin(),
[&](const Key::value_type& key, const KeySpec::value_type& key_spec) {
return key.first == key_spec.first;
return key.first == key_spec.first and key.second.size() <= key_spec.second;
}
);
}