From 7105325b30aa8405ab6ee061e8677fde79aa9435 Mon Sep 17 00:00:00 2001 From: Jonathan Gawrych Date: Thu, 21 Dec 2017 18:49:25 -0800 Subject: [PATCH] Fix string use after destruct introduced in merge commit b7fa0b1 --- Release/src/http/client/http_client_winhttp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Release/src/http/client/http_client_winhttp.cpp b/Release/src/http/client/http_client_winhttp.cpp index 07f5fdb3b9..66ca12ddd1 100644 --- a/Release/src/http/client/http_client_winhttp.cpp +++ b/Release/src/http/client/http_client_winhttp.cpp @@ -412,6 +412,7 @@ class winhttp_client : public _http_client_communicator DWORD access_type; LPCWSTR proxy_name; LPCWSTR proxy_bypass = WINHTTP_NO_PROXY_BYPASS; + utility::string_t proxy_str; http::uri uri; const auto& config = client_config(); @@ -485,7 +486,6 @@ class winhttp_client : public _http_client_communicator } else { - utility::string_t proxy_str; if (uri.port() > 0) { utility::ostringstream_t ss;