mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
clear the httproxy bit on cleanup if the allocproxy bit was set
This commit is contained in:
parent
f50fd062e9
commit
215c75135b
@ -172,11 +172,15 @@ void urlfree(struct UrlData *data, bool totally)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(data->bits.proxystringalloc) {
|
if(data->bits.proxystringalloc) {
|
||||||
data->bits.proxystringalloc=0;
|
data->bits.proxystringalloc=FALSE;;
|
||||||
free(data->proxy);
|
free(data->proxy);
|
||||||
data->proxy=NULL;
|
data->proxy=NULL;
|
||||||
|
|
||||||
|
/* Since we allocated the string the previous round, it means that we
|
||||||
|
"discovered" the proxy in the environment variables and thus we must
|
||||||
|
switch off that knowledge again... */
|
||||||
|
data->bits.httpproxy=FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(data->ptr_proxyuserpwd) {
|
if(data->ptr_proxyuserpwd) {
|
||||||
free(data->ptr_proxyuserpwd);
|
free(data->ptr_proxyuserpwd);
|
||||||
|
Loading…
Reference in New Issue
Block a user