Skip to content
Snippets Groups Projects
Commit 33cf204e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

don't set done==TRUE if the host name doesn't resolve

parent dafc652f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment