From 343291ce37acbeece395734a80f3d7dc771f610f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 4 Oct 2003 14:50:45 +0000 Subject: Based on a patch provided by Siddhartha Prakash Jain. In Curl_resolv() when my_getaddrinfo() has been called (and wait has been set to TRUE), we check if the name already is resolved and if so don't return wait status to the parent. This can happen with IP-only names. --- lib/hostip.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/hostip.h') diff --git a/lib/hostip.h b/lib/hostip.h index 2f53f4f16..f902b5c64 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -57,7 +57,8 @@ int Curl_resolv(struct connectdata *conn, int port, struct Curl_dns_entry **dnsentry); -CURLcode Curl_is_resolved(struct connectdata *conn, bool *done); +CURLcode Curl_is_resolved(struct connectdata *conn, + struct Curl_dns_entry **dns); CURLcode Curl_wait_for_resolv(struct connectdata *conn, struct Curl_dns_entry **dnsentry); CURLcode Curl_multi_ares_fdset(struct connectdata *conn, -- cgit v1.2.3