From 298051ab37b4c6725865fb4a56788d3c9e3201b0 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 6 Dec 2009 20:58:14 +0100 Subject: [PATCH] winhttp: Check for endCert being NULL (Coverity). --- dlls/winhttp/net.c | 1 + 1 file changed, 1 insertion(+) 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 );