a name resolve that times out is still a failed name resolve

This commit is contained in:
Daniel Stenberg 2007-09-27 12:05:39 +00:00
parent 015fc6aa17
commit a4d6611d26
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
/* a name was not resolved */
if((timeout < 0) || (conn->async.status == ARES_ETIMEOUT)) {
failf(data, "Resolving host timed out: %s", conn->host.dispname);
rc = CURLE_OPERATION_TIMEDOUT;
rc = CURLE_COULDNT_RESOLVE_HOST;
}
else if(conn->async.done) {
failf(data, "Could not resolve host: %s (%s)", conn->host.dispname,