aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-19 09:29:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-19 09:29:59 +0000
commit33cf204e9a692c47e0db7759d01493f2ea546b37 (patch)
treef2a0bd4e36442bf6287901bf364bdd69b26e93b5
parentdafc652f638f45b1e7a58a52bb8b949940f2b213 (diff)
don't set done==TRUE if the host name doesn't resolve
-rw-r--r--lib/hostip.c3
1 files changed, 1 insertions, 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;