Skip to content
Snippets Groups Projects
Commit 9518e064 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

extract IPv6-style specified IP-addresses properly

parent aa21e42d
No related branches found
No related tags found
No related merge requests found
......@@ -1996,7 +1996,10 @@ static CURLcode Connect(struct UrlData *data,
failf(data, "You haven't enabled IPv6 support");
return CURLE_URL_MALFORMAT;
#else
conn->name++; /* pass the starting bracket */
tmp = strchr(conn->name, ']');
*tmp = 0; /* zero terminate */
tmp++; /* pass the ending bracket */
if(':' != *tmp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment