From 9518e06413938c0a23c0de120a708fc1ecc0a313 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 15 Aug 2001 21:40:09 +0000 Subject: [PATCH] extract IPv6-style specified IP-addresses properly --- lib/url.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/url.c b/lib/url.c index edbbf7b..afd66a4 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) -- 2.7.4