]> granicus.if.org Git - curl/commitdiff
The error buffer was not getting filled when Curl_wait_for_resolv() fails.
authorDaniel Stenberg <daniel@haxx.se>
Mon, 1 Sep 2003 08:21:08 +0000 (08:21 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 1 Sep 2003 08:21:08 +0000 (08:21 +0000)
Jeff Pohlmeyer fixed.

lib/hostip.c

index 5c3a71841ed4031025009d7903b3ff6a0a45410a..8a2b1a218da0289d71697fd8fedde3676ee066d8 100644 (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;