]> git.ipfire.org Git - thirdparty/curl.git/commit
tool: consider (some) curl_easy_setopt errors fatal
authorDaniel Stenberg <daniel@haxx.se>
Thu, 6 Nov 2025 15:34:23 +0000 (16:34 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 7 Nov 2025 10:12:34 +0000 (11:12 +0100)
commit40b1724f58311a472b195dedd269deb1fd84405e
tree3b8c1bf62953de1c6eece0287d411422a3f61df5
parenta6eaa67c5582155e5d5149b0ff33d11b166ee41a
tool: consider (some) curl_easy_setopt errors fatal

Instead of happily ignoring return codes.

Calls that allocate data, like duplicating strings, can fail because of
lack of memory which could then leave the option unset and curl would
unknowingly continue (if the memory shortage was momentary).

Closes #19385
src/config2setopts.c
src/tool_findfile.c
src/tool_setopt.c
src/tool_setopt.h
src/tool_ssls.c