aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index edbbf7b41..afd66a4c7 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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)