diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-08-15 21:40:09 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-08-15 21:40:09 +0000 |
commit | 9518e06413938c0a23c0de120a708fc1ecc0a313 (patch) | |
tree | 349c2d6f67625552a68f0f7de496941daa310bcc /lib | |
parent | aa21e42d5b1b9bb001c346df3cf0c2467fd40186 (diff) |
extract IPv6-style specified IP-addresses properly
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |