]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
config2setopts: fix for --disable-aws build configuration
authorMaksim Ściepanienka <msciepanienka@gmail.com>
Tue, 20 Jan 2026 03:19:06 +0000 (04:19 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 20 Jan 2026 06:49:48 +0000 (07:49 +0100)
Closes #20368

src/config2setopts.c

index 5e1722c3eed75de3dc762e730bf9ee56c4f9ff34..a023287834cd22c2ed3d30e6be609805c010d74a 100644 (file)
@@ -486,12 +486,14 @@ static CURLcode ssl_setopts(struct OperationConfig *config, CURL *curl)
 /* only called for HTTP transfers */
 static CURLcode http_setopts(struct OperationConfig *config, CURL *curl)
 {
-  CURLcode result;
+  CURLcode result = CURLE_OK;
   long postRedir = 0;
 
   my_setopt_long(curl, CURLOPT_FOLLOWLOCATION, config->followlocation);
   my_setopt_long(curl, CURLOPT_UNRESTRICTED_AUTH, config->unrestricted_auth);
+#ifndef CURL_DISABLE_AWS
   MY_SETOPT_STR(curl, CURLOPT_AWS_SIGV4, config->aws_sigv4);
+#endif
   my_setopt_long(curl, CURLOPT_AUTOREFERER, config->autoreferer);
 
   if(config->proxyheaders) {