crypt32: Explicitly terminate loop when a matching signer cert is found.

This commit is contained in:
Juan Lang 2007-08-21 15:13:47 -07:00 committed by Alexandre Julliard
parent d4c318f295
commit 6acd761646

View file

@ -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)
{