]> git.ipfire.org Git - thirdparty/curl.git/commit
urldata: move hstslist from 'set' to 'state'
authorDaniel Stenberg <daniel@haxx.se>
Mon, 13 Nov 2023 11:37:50 +0000 (12:37 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 Nov 2023 14:36:24 +0000 (15:36 +0100)
commit289b486ffaa4dc654aafeb31e000a6576f8794aa
tree62e78d0f9bb8396d5e488ab5a563060373e46214
parent7cb03229d9e9c516b2a49a8da3d0655ed4104e2c
urldata: move hstslist from 'set' to 'state'

To make it work properly with curl_easy_duphandle(). This, because
duphandle duplicates the entire 'UserDefined' struct by plain copy while
'hstslist' is a linked curl_list of file names. This would lead to a
double-free when the second of the two involved easy handles were
closed.

Closes #12315
lib/hsts.c
lib/setopt.c
lib/url.c
lib/urldata.h