aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-09-01 08:21:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-09-01 08:21:08 +0000
commit5629eeaec2580ff63f7539ee0045e18ec3e44ddc (patch)
treef7094181a197f7f242cacbe6ef019cd56866dcd6
parent46c2bc4bb67fefc63263468d6442f42570fdf237 (diff)
The error buffer was not getting filled when Curl_wait_for_resolv() fails.
Jeff Pohlmeyer fixed.
-rw-r--r--lib/hostip.c4
1 files changed, 3 insertions, 1 deletions
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;