From 05a9370a324efdc9d2fdd21d5d2fa8d5b051ad9c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 27 Jul 2026 10:49:56 +0200 Subject: [PATCH] fixup error check --- src/config2setopts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config2setopts.c b/src/config2setopts.c index 4d62e67106..baa4155482 100644 --- a/src/config2setopts.c +++ b/src/config2setopts.c @@ -949,11 +949,13 @@ static CURLcode credentials_and_headers_setopts(struct OperationConfig *config, my_setopt_bitmask(curl, CURLOPT_HTTPAUTH, config->authtype); result = my_setopt_slist(curl, CURLOPT_HTTPHEADER, config->headers); - if(result) { + if(result == CURLE_BAD_FUNCTION_ARGUMENT) { errorf("Illegal CRL/LF in --header data"); config->synthetic_error = TRUE; return result; } + if(setopt_bad(result)) + return result; if(proto_http || proto_rtsp) { MY_SETOPT_STR(curl, CURLOPT_REFERER, config->referer);