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/multi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/multi.c') diff --git a/lib/multi.c b/lib/multi.c index a1e10d59b..39ab97799 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -360,12 +360,12 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles) case CURLM_STATE_WAITRESOLVE: /* awaiting an asynch name resolve to complete */ { - bool done; + struct Curl_dns_entry *dns; /* check if we have the name resolved by now */ - easy->result = Curl_is_resolved(easy->easy_conn, &done); + easy->result = Curl_is_resolved(easy->easy_conn, &dns); - if(done) { + if(dns) { /* Perform the next step in the connection phase, and then move on to the WAITCONNECT state */ easy->result = Curl_async_resolved(easy->easy_conn); -- cgit v1.2.3