summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-22 09:06:44 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-22 16:19:53 +0200
commit817323ed822ef16d7551315b7a74cf9a6c9e07af (patch)
treed14b646975aa169b0a5ffa4804eb2a4581bd46ca
parent42ed88e70a7e6c3eeca2e624561964dab235f300 (diff)
downloadgnurl-817323ed822ef16d7551315b7a74cf9a6c9e07af.tar.gz
gnurl-817323ed822ef16d7551315b7a74cf9a6c9e07af.tar.bz2
gnurl-817323ed822ef16d7551315b7a74cf9a6c9e07af.zip
parse_proxy: switch off tunneling if non-HTTP proxy
non-HTTP proxy implies not using CURLOPT_HTTPPROXYTUNNEL Bug: http://curl.haxx.se/mail/lib-2015-05/0056.html Reported-by: Sean Boudreau
-rw-r--r--lib/url.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 1b57ef102..17279bbe0 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -4518,7 +4518,6 @@ static char *detect_proxy(struct connectdata *conn)
* If this is supposed to use a proxy, we need to figure out the proxy
* host name, so that we can re-use an existing connection
* that may exist registered to the same proxy host.
- * proxy will be freed before this function returns.
*/
static CURLcode parse_proxy(struct SessionHandle *data,
struct connectdata *conn, char *proxy)
@@ -5566,8 +5565,10 @@ static CURLcode create_conn(struct SessionHandle *data,
conn->bits.httpproxy = TRUE;
#endif
}
- else
+ else {
conn->bits.httpproxy = FALSE; /* not a HTTP proxy */
+ conn->bits.tunnel_proxy = FALSE; /* no tunneling if not HTTP */
+ }
conn->bits.proxy = TRUE;
}
else {