mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
url: always clone the CUROPT_CURLU handle
Since a few code paths actually update that data. Fixes #3753 Closes #3761 Reported-by: Poul T Lomholt
This commit is contained in:
parent
f73de32d46
commit
9a4ad1b056
@ -303,8 +303,7 @@ static void up_free(struct Curl_easy *data)
|
||||
Curl_safefree(up->options);
|
||||
Curl_safefree(up->path);
|
||||
Curl_safefree(up->query);
|
||||
if(data->set.uh != data->state.uh)
|
||||
curl_url_cleanup(data->state.uh);
|
||||
curl_url_cleanup(data->state.uh);
|
||||
data->state.uh = NULL;
|
||||
}
|
||||
|
||||
@ -1879,7 +1878,7 @@ static CURLcode parseurlandfillconn(struct Curl_easy *data,
|
||||
|
||||
/* parse the URL */
|
||||
if(data->set.uh) {
|
||||
uh = data->state.uh = data->set.uh;
|
||||
uh = data->state.uh = curl_url_dup(data->set.uh);
|
||||
}
|
||||
else {
|
||||
uh = data->state.uh = curl_url();
|
||||
|
Loading…
Reference in New Issue
Block a user