mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 01:41:50 -05:00
curl_easy_reset: reset the URL
Make sure that the URL is reset and cleared. Bug: http://curl.haxx.se/mail/lib-2014-05/0235.html Reported-by: Jonathan Cardoso Machado
This commit is contained in:
parent
b3d0e4e243
commit
ac6da721a3
@ -278,6 +278,11 @@ void Curl_freeset(struct SessionHandle *data)
|
|||||||
data->change.referer_alloc = FALSE;
|
data->change.referer_alloc = FALSE;
|
||||||
}
|
}
|
||||||
data->change.referer = NULL;
|
data->change.referer = NULL;
|
||||||
|
if(data->change.url_alloc) {
|
||||||
|
Curl_safefree(data->change.url);
|
||||||
|
data->change.url_alloc = FALSE;
|
||||||
|
}
|
||||||
|
data->change.url = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static CURLcode setstropt(char **charp, char *s)
|
static CURLcode setstropt(char **charp, char *s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user