mirror of
https://github.com/curl/curl.git
synced 2025-02-11 14:50:40 +08: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 = 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)
|
||||
|
Loading…
Reference in New Issue
Block a user