aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-19 23:23:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-19 23:23:45 +0000
commitb1da98170f748e4b4acf10e7a54a8676432a4818 (patch)
treecbb5d2689448cdf45b27f5adb58ff7ba55a7b678 /lib
parent0496598e77c6b735a3a5c0ab77c2b33c95c76834 (diff)
make sure the 'done' variable is always set to something in the
Curl_is_resolved() function
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index bae94af7a..cbb5491b7 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -408,13 +408,13 @@ CURLcode Curl_is_resolved(struct connectdata *conn, bool *done)
if(count)
ares_process(data->state.areschannel, &read_fds, &write_fds);
+ *done = FALSE;
+
if(conn->async.done) {
if(!conn->async.dns)
return CURLE_COULDNT_RESOLVE_HOST;
*done = TRUE;
}
- else
- *done = FALSE;
return CURLE_OK;
}