1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

make sure the 'done' variable is always set to something in the

Curl_is_resolved() function
This commit is contained in:
Daniel Stenberg 2003-08-19 23:23:45 +00:00
parent 0496598e77
commit b1da98170f

View File

@ -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;
}