1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

The error buffer was not getting filled when Curl_wait_for_resolv() fails.

Jeff Pohlmeyer fixed.
This commit is contained in:
Daniel Stenberg 2003-09-01 08:21:08 +00:00
parent 46c2bc4bb6
commit 5629eeaec2

View File

@ -466,8 +466,10 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
if(!conn->async.dns) {
/* a name was not resolved */
if(conn->async.done)
if(conn->async.done) {
failf(data, "Could not resolve host: %s", conn->name);
rc = CURLE_COULDNT_RESOLVE_HOST;
}
else
rc = CURLE_OPERATION_TIMEDOUT;