From 3f5034618ce2d9de59863d039d1cbc77850d3c3b Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 1 Sep 2009 17:14:39 +0000 Subject: [PATCH] - client: Use HTTP_OP::pi to avoid a crash when using a proxy. libcurl uses the proxy information after the PROXY_INFO struct in setup_proxy_session() had been popped off the stack. client/ http_curl.cpp,h svn path=/trunk/boinc/; revision=18974 --- checkin_notes | 8 ++++++++ client/http_curl.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 91c059edd1..8c8764e29e 100644 --- a/checkin_notes +++ b/checkin_notes @@ -7404,3 +7404,11 @@ David 1 Sept 2009 scheduler_op.cpp lib/ proxy_info.cpp,h + +Rom 1 Sept 2009 + - client: Use HTTP_OP::pi to avoid a crash when using a proxy. libcurl uses + the proxy information after the PROXY_INFO struct in setup_proxy_session() + had been popped off the stack. + + client/ + http_curl.cpp,h diff --git a/client/http_curl.cpp b/client/http_curl.cpp index b1d4e571db..040ae63ad1 100644 --- a/client/http_curl.cpp +++ b/client/http_curl.cpp @@ -806,7 +806,7 @@ void HTTP_OP::setup_proxy_session(bool no_proxy) { return; } - PROXY_INFO pi = gstate.proxy_info; + pi = gstate.proxy_info; if (pi.use_http_proxy) { if (log_flags.proxy_debug) { msg_printf(