From 33cf204e9a692c47e0db7759d01493f2ea546b37 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 19 Aug 2003 09:29:59 +0000 Subject: don't set done==TRUE if the host name doesn't resolve --- lib/hostip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/hostip.c b/lib/hostip.c index 23bd532f3..bae94af7a 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -409,10 +409,9 @@ CURLcode Curl_is_resolved(struct connectdata *conn, bool *done) ares_process(data->state.areschannel, &read_fds, &write_fds); if(conn->async.done) { - *done = TRUE; - if(!conn->async.dns) return CURLE_COULDNT_RESOLVE_HOST; + *done = TRUE; } else *done = FALSE; -- cgit v1.2.3