aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-02 11:26:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-02 11:26:53 +0000
commitced89553250030849a9896dae1d446c5ccf1ac3c (patch)
treee76b0503a5afb613b9e7e776d89449931683e298 /lib/url.c
parent51ca5fcbe0745cc4e245ffb69b339d1987be3b88 (diff)
IPv6 adjustments, connect()ing to bad ports still don't work properly for
IPv6
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/url.c b/lib/url.c
index bbd40e827..bc4ae3b2c 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1949,7 +1949,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
if(!conn->hostaddr) {
/* it might already be set if reusing a connection */
conn->hostaddr = Curl_getaddrinfo(data, conn->name, conn->port,
- &conn->hostent_buf);
+ &conn->hostent_buf);
}
if(!conn->hostaddr) {
failf(data, "Couldn't resolve host '%s'", conn->name);
@@ -1963,7 +1963,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
/* resolve proxy */
/* it might already be set if reusing a connection */
conn->hostaddr = Curl_getaddrinfo(data, conn->proxyhost, conn->port,
- &conn->hostent_buf);
+ &conn->hostent_buf);
if(!conn->hostaddr) {
failf(data, "Couldn't resolve proxy '%s'", conn->proxyhost);
@@ -2040,7 +2040,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
#else
const int niflags = NI_NUMERICHOST;
#endif
- struct addrinfo *ai = conn->ai;
+ struct addrinfo *ai = conn->serv_addr;
if (getnameinfo(ai->ai_addr, ai->ai_addrlen, hbuf, sizeof(hbuf), NULL, 0,
niflags)) {