crypt32: Only check revocation on a chain without other errors.

This commit is contained in:
Juan Lang 2009-12-02 09:28:51 -08:00 committed by Alexandre Julliard
parent 8115c6243b
commit 596cd16fc4
1 changed files with 2 additions and 1 deletions

View File

@ -2638,7 +2638,8 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
if (!(dwFlags & CERT_CHAIN_RETURN_LOWER_QUALITY_CONTEXTS))
CRYPT_FreeLowerQualityChains(chain);
pChain = (PCERT_CHAIN_CONTEXT)chain;
CRYPT_VerifyChainRevocation(pChain, pTime, pChainPara, dwFlags);
if (!pChain->TrustStatus.dwErrorStatus)
CRYPT_VerifyChainRevocation(pChain, pTime, pChainPara, dwFlags);
CRYPT_CheckUsages(pChain, pChainPara);
if (ppChainContext)
*ppChainContext = pChain;