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:
parent
0496598e77
commit
b1da98170f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user