mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 06:21:15 +00:00
crypt32: Explicitly terminate loop when a matching signer cert is found.
This commit is contained in:
parent
d4c318f295
commit
6acd761646
|
@ -2097,9 +2097,13 @@ static BOOL CDecodeSignedMsg_VerifySignature(CDecodeMsg *msg, PCERT_INFO info)
|
|||
ret = CertCompareCertificateName(X509_ASN_ENCODING,
|
||||
&msg->u.signed_data.info->rgSignerInfo[i].Issuer, &info->Issuer);
|
||||
if (ret)
|
||||
{
|
||||
ret = CertCompareIntegerBlob(
|
||||
&msg->u.signed_data.info->rgSignerInfo[i].SerialNumber,
|
||||
&info->SerialNumber);
|
||||
if (ret)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (ret)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue