1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

extract IPv6-style specified IP-addresses properly

This commit is contained in:
Daniel Stenberg 2001-08-15 21:40:09 +00:00
parent aa21e42d5b
commit 9518e06413

View File

@ -1996,7 +1996,10 @@ static CURLcode Connect(struct UrlData *data,
failf(data, "You haven't enabled IPv6 support"); failf(data, "You haven't enabled IPv6 support");
return CURLE_URL_MALFORMAT; return CURLE_URL_MALFORMAT;
#else #else
conn->name++; /* pass the starting bracket */
tmp = strchr(conn->name, ']'); tmp = strchr(conn->name, ']');
*tmp = 0; /* zero terminate */
tmp++; /* pass the ending bracket */ tmp++; /* pass the ending bracket */
if(':' != *tmp) if(':' != *tmp)