Fix overflow when verifying signatures of content addressable paths
This commit is contained in:
parent
8327a7a8fa
commit
0ae8d4033d
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ struct CmdVerify : StorePathsCommand
|
|||
for (auto sig : sigs) {
|
||||
if (sigsSeen.count(sig)) continue;
|
||||
sigsSeen.insert(sig);
|
||||
if (info->checkSignature(publicKeys, sig))
|
||||
if (validSigs < ValidPathInfo::maxSigs && info->checkSignature(publicKeys, sig))
|
||||
validSigs++;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue