From 5629eeaec2580ff63f7539ee0045e18ec3e44ddc Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 1 Sep 2003 08:21:08 +0000
Subject: [PATCH] The error buffer was not getting filled when
 Curl_wait_for_resolv() fails. Jeff Pohlmeyer fixed.

---
 lib/hostip.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/hostip.c b/lib/hostip.c
index 5c3a71841e..8a2b1a218d 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;
 
-- 
GitLab