From: Daniel Stenberg Date: Fri, 11 Feb 2022 13:05:57 +0000 (+0100) Subject: url: exclude zonefrom_url when no ipv6 is available X-Git-Tag: curl-7_82_0~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3331a029cf0ec95dc6f74c1ffccb5ee8325e444;p=thirdparty%2Fcurl.git url: exclude zonefrom_url when no ipv6 is available Closes #8439 --- diff --git a/lib/url.c b/lib/url.c index 943f38a27a..af032d50ee 100644 --- 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.