From 1daa258b8aaa004ddc022d98f2c0ea13ffb580a6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 24 Jun 2004 08:09:54 +0000 Subject: fixed problems I missed to fix from my cleanup --- lib/hostthre.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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)) { -- cgit v1.2.3