]> git.ipfire.org Git - thirdparty/curl.git/commit
setopt: when setting bad protocols, don't store them
authorDaniel Stenberg <daniel@haxx.se>
Thu, 6 Nov 2025 22:39:56 +0000 (23:39 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 7 Nov 2025 07:15:42 +0000 (08:15 +0100)
commit684af00181145e08e6cb287d09ecdf29ee7450ab
treead5f787df43289ca4ea96420ddb4dc69d85a2c8d
parent8e93a74a731714767e2414e1a5687aa0ef31d9ea
setopt: when setting bad protocols, don't store them

Both CURLOPT_PROTOCOLS_STR and CURLOPT_REDIR_PROTOCOLS_STR would
previously return error on bad input but would wrongly still store and
keep the partial (unacceptable) result in the handle.

Closes #19389
lib/setopt.c