From: Daniel Stenberg Date: Mon, 1 Sep 2003 08:21:08 +0000 (+0000) Subject: The error buffer was not getting filled when Curl_wait_for_resolv() fails. X-Git-Tag: curl-7_10_8~254 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5629eeaec2580ff63f7539ee0045e18ec3e44ddc;p=curl The error buffer was not getting filled when Curl_wait_for_resolv() fails. Jeff Pohlmeyer fixed. --- diff --git a/lib/hostip.c b/lib/hostip.c index 5c3a71841..8a2b1a218 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -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;