From: Daniel Stenberg Date: Tue, 19 Aug 2003 23:23:45 +0000 (+0000) Subject: make sure the 'done' variable is always set to something in the X-Git-Tag: curl-7_10_8~278 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1da98170f748e4b4acf10e7a54a8676432a4818;p=thirdparty%2Fcurl.git make sure the 'done' variable is always set to something in the Curl_is_resolved() function --- diff --git a/lib/hostip.c b/lib/hostip.c index bae94af7ac..cbb5491b77 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; }