]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
url: exclude zonefrom_url when no ipv6 is available
authorDaniel Stenberg <daniel@haxx.se>
Fri, 11 Feb 2022 13:05:57 +0000 (14:05 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 11 Feb 2022 22:27:47 +0000 (23:27 +0100)
Closes #8439

lib/url.c

index 943f38a27af3932000dda606ca55f2702d662730..af032d50eeb2e97a14965d605639fb04cdb06bfb 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1859,6 +1859,7 @@ CURLcode Curl_uc_to_curlcode(CURLUcode uc)
   }
 }
 
+#ifdef ENABLE_IPV6
 /*
  * If the URL was set with an IPv6 numerical address with a zone id part, set
  * the scope_id based on that!
@@ -1908,6 +1909,9 @@ static void zonefrom_url(CURLU *uh, struct Curl_easy *data,
     free(zoneid);
   }
 }
+#else
+#define zonefrom_url(a,b,c) Curl_nop_stmt
+#endif
 
 /*
  * Parse URL and fill in the relevant members of the connection struct.