aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-24 08:09:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-24 08:09:54 +0000
commit1daa258b8aaa004ddc022d98f2c0ea13ffb580a6 (patch)
treee78fcb8bb5d61b66f73d853a6d75622a62e98dd6 /lib
parent560c257bd0a633224f777a2ab51b56fb7f3e093d (diff)
fixed problems I missed to fix from my cleanup
Diffstat (limited to 'lib')
-rw-r--r--lib/hostthre.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/hostthre.c b/lib/hostthre.c
index 29b6ab387..be8ab20a8 100644
--- a/lib/hostthre.c
+++ b/lib/hostthre.c
@@ -185,11 +185,11 @@ static unsigned __stdcall gethostbyname_thread (void *arg)
WSASetLastError (conn->async.status = NO_DATA); /* pending status */
he = gethostbyname (conn->async.hostname);
if (he) {
- Curl_addrinfo_callback(conn, CURL_ASYNC_SUCCESS, he);
+ Curl_addrinfo4_callback(conn, CURL_ASYNC_SUCCESS, he);
rc = 1;
}
else {
- Curl_addrinfo_callback(conn, (int)WSAGetLastError(), NULL);
+ Curl_addrinfo4_callback(conn, (int)WSAGetLastError(), NULL);
rc = 0;
}
TRACE(("Winsock-error %d, addr %s\n", conn->async.status,
@@ -451,7 +451,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
in = inet_addr(hostname);
if (in != CURL_INADDR_NONE)
/* This is a dotted IP address 123.123.123.123-style */
- return Curl_ip2addr(in, hostname);
+ return Curl_ip2addr(in, hostname, port);
/* fire up a new resolver thread! */
if (init_resolve_thread(conn, hostname, port, NULL)) {