]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: bail if set CURLOPT_HTTP09_ALLOWED returns error
authorDaniel Stenberg <daniel@haxx.se>
Thu, 11 Mar 2021 14:37:52 +0000 (15:37 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 11 Mar 2021 21:45:20 +0000 (22:45 +0100)
Closes #6727

src/tool_operate.c

index 2aebb9ac2c6d038640912b300025111a3b3d1293..9426432909dbf0a7cc79deda8f1c51c0a8921678 100644 (file)
@@ -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) */