Commit 3c8a04f1 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Include name constraints errors in the chain's error status.

parent f9ad32f0
......@@ -816,8 +816,12 @@ static void CRYPT_CheckChainNameConstraints(PCERT_SIMPLE_CHAIN chain)
chain->rgpElement[j]->pCertContext->pCertInfo,
&errorStatus);
if (errorStatus)
{
chain->rgpElement[i]->TrustStatus.dwErrorStatus |=
errorStatus;
CRYPT_CombineTrustStatus(&chain->TrustStatus,
&chain->rgpElement[i]->TrustStatus);
}
else
chain->rgpElement[i]->TrustStatus.dwInfoStatus |=
CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS;
......
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