From c3331a029cf0ec95dc6f74c1ffccb5ee8325e444 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 11 Feb 2022 14:05:57 +0100 Subject: [PATCH] url: exclude zonefrom_url when no ipv6 is available Closes #8439 --- lib/url.c | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.47.3