Skip to content
Snippets Groups Projects
Commit e775358a authored by Simon Désaulniers's avatar Simon Désaulniers
Browse files

pht: validKey must check for key field value len

parent ea41a747
Branches
Tags
No related merge requests found
...@@ -246,7 +246,7 @@ private: ...@@ -246,7 +246,7 @@ private:
return k.size() == keySpec_.size() and return k.size() == keySpec_.size() and
std::equal(k.begin(), k.end(), keySpec_.begin(), std::equal(k.begin(), k.end(), keySpec_.begin(),
[&](const Key::value_type& key, const KeySpec::value_type& key_spec) { [&](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;
} }
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment