Commit 6acd7616 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

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

parent d4c318f2
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment