mirror of
https://github.com/curl/curl.git
synced 2026-07-24 10:57:16 +03:00
curl_easy_reset: reset the referer string
When CURLOPT_REFERER has been used, curl_easy_reset() did not properly clear it. Verified with the new test 598 Bug: http://curl.haxx.se/bug/view.cgi?id=3481551 Reported by: Michael Day
This commit is contained in:
parent
4405039fdc
commit
ea055407fa
4 changed files with 153 additions and 1 deletions
|
|
@ -272,6 +272,12 @@ void Curl_freeset(struct SessionHandle * data)
|
|||
enum dupstring i;
|
||||
for(i=(enum dupstring)0; i < STRING_LAST; i++)
|
||||
Curl_safefree(data->set.str[i]);
|
||||
|
||||
if(data->change.referer_alloc) {
|
||||
Curl_safefree(data->change.referer);
|
||||
data->change.referer_alloc = FALSE;
|
||||
}
|
||||
data->change.referer = NULL;
|
||||
}
|
||||
|
||||
static CURLcode setstropt(char **charp, char * s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue