mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -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);
|
ares_process(data->state.areschannel, &read_fds, &write_fds);
|
||||||
|
|
||||||
if(conn->async.done) {
|
if(conn->async.done) {
|
||||||
*done = TRUE;
|
|
||||||
|
|
||||||
if(!conn->async.dns)
|
if(!conn->async.dns)
|
||||||
return CURLE_COULDNT_RESOLVE_HOST;
|
return CURLE_COULDNT_RESOLVE_HOST;
|
||||||
|
*done = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
*done = FALSE;
|
*done = FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user