mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
don't set done==TRUE if the host name doesn't resolve
This commit is contained in:
parent
dafc652f63
commit
33cf204e9a
@ -409,10 +409,9 @@ CURLcode Curl_is_resolved(struct connectdata *conn, bool *done)
|
||||
ares_process(data->state.areschannel, &read_fds, &write_fds);
|
||||
|
||||
if(conn->async.done) {
|
||||
*done = TRUE;
|
||||
|
||||
if(!conn->async.dns)
|
||||
return CURLE_COULDNT_RESOLVE_HOST;
|
||||
*done = TRUE;
|
||||
}
|
||||
else
|
||||
*done = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user