From b1da98170f748e4b4acf10e7a54a8676432a4818 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 19 Aug 2003 23:23:45 +0000 Subject: make sure the 'done' variable is always set to something in the Curl_is_resolved() function --- lib/hostip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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; } -- cgit v1.2.3