From 04e4d9a0b3ef5653c816a309866e54a3913fa585 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 26 Dec 2007 23:29:35 +0000 Subject: Dmitry Kurochkin mentioned a flaw (http://curl.haxx.se/mail/lib-2007-12/0252.html) in detect_proxy() which failed to set the bits.proxy variable properly when an environment variable told libcurl to use a http proxy. --- lib/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/url.c b/lib/url.c index 085ce9d41..ee8b916e4 100644 --- a/lib/url.c +++ b/lib/url.c @@ -3242,7 +3242,7 @@ static char *detect_proxy(struct connectdata *conn) if(conn->proxytype == CURLPROXY_HTTP) { /* force this connection's protocol to become HTTP */ conn->protocol = PROT_HTTP | bits; - conn->bits.httpproxy = TRUE; + conn->bits.proxy = conn->bits.httpproxy = TRUE; } } } /* if(!nope) - it wasn't specified non-proxy */ -- cgit v1.2.3