mirror of
https://github.com/curl/curl.git
synced 2026-07-31 09:08:03 +03:00
urldata: move the cookefilelist to the 'set' struct
The cookiefile entries are set into the handle and should remain set for the lifetime of the handle so that duplicating it also duplicates the list. Therefore, the struct field is moved from 'state' to 'set'. Fixes #10133 Closes #10134
This commit is contained in:
parent
e4505a1915
commit
af5999a674
7 changed files with 24 additions and 37 deletions
|
|
@ -1389,11 +1389,9 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
|
|||
else
|
||||
data->state.infilesize = 0;
|
||||
|
||||
#ifndef CURL_DISABLE_COOKIES
|
||||
/* If there is a list of cookie files to read, do it now! */
|
||||
if(data->state.cookielist)
|
||||
Curl_cookie_loadfiles(data);
|
||||
#endif
|
||||
Curl_cookie_loadfiles(data);
|
||||
|
||||
/* If there is a list of host pairs to deal with */
|
||||
if(data->state.resolve)
|
||||
result = Curl_loadhostpairs(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue