diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-19 23:23:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-19 23:23:45 +0000 |
commit | b1da98170f748e4b4acf10e7a54a8676432a4818 (patch) | |
tree | cbb5d2689448cdf45b27f5adb58ff7ba55a7b678 /lib | |
parent | 0496598e77c6b735a3a5c0ab77c2b33c95c76834 (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.c | 4 |
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; } |