From: Daniel Stenberg Date: Thu, 11 Mar 2021 14:37:52 +0000 (+0100) Subject: tool_operate: bail if set CURLOPT_HTTP09_ALLOWED returns error X-Git-Tag: curl-7_76_0~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=985c184d5b5f7bd442af462cfde5f7f597122b13;p=thirdparty%2Fcurl.git tool_operate: bail if set CURLOPT_HTTP09_ALLOWED returns error Closes #6727 --- diff --git a/src/tool_operate.c b/src/tool_operate.c index 2aebb9ac2c..9426432909 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1460,6 +1460,10 @@ static CURLcode single_transfer(struct GlobalConfig *global, /* new in libcurl 7.64.0 */ my_setopt(curl, CURLOPT_HTTP09_ALLOWED, config->http09_allowed ? 1L : 0L); + if(result) { + errorf(global, "HTTP/0.9 is not supported in this build!\n"); + return result; + } } /* (built_in_protos & CURLPROTO_HTTP) */