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

This commit is contained in:
Daniel Stenberg 2003-08-19 09:29:59 +00:00
parent dafc652f63
commit 33cf204e9a
1 changed files with 1 additions and 2 deletions

View File

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