winhttp: Check for endCert being NULL (Coverity).

This commit is contained in:
Marcus Meissner 2009-12-06 20:58:14 +01:00 committed by Alexandre Julliard
parent 6f8fb2f4e7
commit 298051ab37
1 changed files with 1 additions and 0 deletions

View File

@ -359,6 +359,7 @@ static int netconn_secure_verify( int preverify_ok, X509_STORE_CTX *ctx )
CertFreeCertificateContext( context );
}
}
if (!endCert) ret = FALSE;
if (ret)
ret = netconn_verify_cert( endCert, store, server );
CertFreeCertificateContext( endCert );