diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-12-22 13:09:16 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-12-22 16:06:37 +0100 |
commit | af5999a6742ea90011e7fa08aade7eac9943b76a (patch) | |
tree | 4786ccad2f06062af09de06fea93199ebbf9337f /lib/transfer.c | |
parent | e4505a1915f1bfae71b06636f0690fae2c53c78e (diff) | |
download | curl-af5999a6742ea90011e7fa08aade7eac9943b76a.tar.gz |
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
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index ba0410fc5..90d9c7b18 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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); |