mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
pht: validKey must check for key field value len
This commit is contained in:
1 parent
fe1b8b88e1
commit
7ab64ea0e6
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user