diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-12-22 15:04:59 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-12-22 15:04:59 +0000 |
commit | bedc61ac45394eec850edfdae43a55c8586c3017 (patch) | |
tree | 8ef8bbd99f2a20cb16164224ca6125f26a0510d1 /lib/easy.c | |
parent | 61a6992559ecf6719a077399eaf6050862bbfc6f (diff) |
- Robert Foreman provided a prime example snippet showing how libcurl would
get confused and not acknowledge the 'no_proxy' variable properly once it
had used the proxy and you re-used the same easy handle. I made sure the
proxy name is properly stored in the connect struct rather than the
sessionhandle/easy struct.
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/easy.c b/lib/easy.c index 73e145213..17b9faf09 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -593,12 +593,7 @@ CURL *curl_easy_duphandle(CURL *incurl) break; outcurl->change.url_alloc = TRUE; } - if(data->change.proxy) { - outcurl->change.proxy = strdup(data->change.proxy); - if(!outcurl->change.proxy) - break; - outcurl->change.proxy_alloc = TRUE; - } + if(data->change.referer) { outcurl->change.referer = strdup(data->change.referer); if(!outcurl->change.referer) @@ -633,8 +628,6 @@ CURL *curl_easy_duphandle(CURL *incurl) Curl_rm_connc(outcurl->state.connc); if(outcurl->state.headerbuff) free(outcurl->state.headerbuff); - if(outcurl->change.proxy) - free(outcurl->change.proxy); if(outcurl->change.url) free(outcurl->change.url); if(outcurl->change.referer) |