diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c index 10176d9411e..6512db58366 100644 --- a/dlls/winhttp/net.c +++ b/dlls/winhttp/net.c @@ -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 );