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/urldata.h | |
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/urldata.h')
-rw-r--r-- | lib/urldata.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 3d7545c68..152226c4f 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1403,10 +1403,6 @@ struct UrlState { is this */ char *url; /* work URL, copied from UserDefined */ char *referer; /* referer string */ -#ifndef CURL_DISABLE_COOKIES - struct curl_slist *cookielist; /* list of cookie files set by - curl_easy_setopt(COOKIEFILE) calls */ -#endif struct curl_slist *resolve; /* set to point to the set.resolve list when this should be dealt with in pretransfer */ #ifndef CURL_DISABLE_HTTP @@ -1661,6 +1657,10 @@ struct UserDefined { void *prereq_userp; /* pre-initial request user data */ void *seek_client; /* pointer to pass to the seek callback */ +#ifndef CURL_DISABLE_COOKIES + struct curl_slist *cookielist; /* list of cookie files set by + curl_easy_setopt(COOKIEFILE) calls */ +#endif #ifndef CURL_DISABLE_HSTS curl_hstsread_callback hsts_read; void *hsts_read_userp; |