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:
Daniel Stenberg 2014-05-24 19:05:12 +02:00
parent b3d0e4e243
commit ac6da721a3

View File

@ -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)