]> git.ipfire.org Git - thirdparty/curl.git/commit
http: do the cookie list access under lock
authorDavid Zhuang <dzhuang@roblox.com>
Wed, 3 Sep 2025 00:28:21 +0000 (17:28 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 3 Sep 2025 10:54:31 +0000 (12:54 +0200)
commitc278c508e2acfad5f2603febfdba80a30427cd3f
treee7a8e196813b3a2b1ea4df558542bba637e4daf1
parent5e6bc73570557db2ceb092d1bc7284aca9271f15
http: do the cookie list access under lock

A previous refactor of cookie logic changed Curl_cookie_getlist to no
longer return a list of copied cookies, but instead return a linked list
pointing to existing cookies. The returned linked list is accessed
outside of the scope of the cookie share lock in http_cookies, which
leads to issues if the shared cookie list is modified at the same time.
This is the relevant commit: be39ed1

Closes #18457
lib/http.c