winhttp(1/3): Fix crash when proxy bypass is unset

Juan Lang juan.lang at gmail.com
Tue Jul 21 13:39:12 CDT 2009


This little patch series fixes a few problems with proxy support in winhttp.
--Juan
-------------- next part --------------
From efcb23bbaed553a36e5564c3eac8da71348c6cd3 Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Tue, 21 Jul 2009 11:22:03 -0700
Subject: [PATCH 1/3] Fix crash when proxy bypass is unset

---
 dlls/winhttp/session.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c
index e1a2b4b..227354d 100644
--- a/dlls/winhttp/session.c
+++ b/dlls/winhttp/session.c
@@ -291,6 +291,7 @@ static BOOL should_bypass_proxy(session_t *session, LPCWSTR server)
     LPCWSTR ptr;
     BOOL ret = FALSE;
 
+    if (!session->proxy_bypass) return FALSE;
     ptr = session->proxy_bypass;
     do {
         LPCWSTR tmp = ptr;
-- 
1.6.3.2


More information about the wine-patches mailing list