urldata: move cookiehost to struct SingleRequest

To make it scoped for the single request appropriately.

Reported-by: Muhamad Arga Reksapati

Verify with libtest 2504: a custom Host *disabled* on reused handle

Closes #21312
This commit is contained in:
Daniel Stenberg 2026-04-14 08:51:44 +02:00
parent 86f1e5b3f6
commit 3a19987a87
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
9 changed files with 162 additions and 12 deletions

View file

@ -118,6 +118,9 @@ void Curl_req_hard_reset(struct SingleRequest *req, struct Curl_easy *data)
curlx_safefree(req->userpwd);
#ifndef CURL_DISABLE_PROXY
curlx_safefree(req->proxyuserpwd);
#endif
#ifndef CURL_DISABLE_COOKIES
curlx_safefree(req->cookiehost);
#endif
Curl_client_reset(data);
if(req->sendbuf_init)