aboutsummaryrefslogtreecommitdiff
path: root/lib/hostares.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-06 11:10:51 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-06 11:10:51 +0000
commit8e73e553367730c6f4edebd40d723ae7319092a6 (patch)
treebb379d42a5521c7e8e2b86bd941d997031468778 /lib/hostares.c
parent55c015c1360b5951b31b4bd2b80db5f169552cb7 (diff)
Michael Benedict brought a fix that fills in the errorbuffer properly
when ares fails to resolve a name. This was fixed before but somehow has fallen out again!
Diffstat (limited to 'lib/hostares.c')
-rw-r--r--lib/hostares.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hostares.c b/lib/hostares.c
index 35640d5b7..02212a2c3 100644
--- a/lib/hostares.c
+++ b/lib/hostares.c
@@ -151,8 +151,11 @@ CURLcode Curl_is_resolved(struct connectdata *conn,
if(conn->async.done) {
/* we're done, kill the ares handle */
- if(!conn->async.dns)
+ if(!conn->async.dns) {
+ failf(data, "Could not resolve host: %s (%s)", conn->name,
+ ares_strerror(conn->async.status));
return CURLE_COULDNT_RESOLVE_HOST;
+ }
*dns = conn->async.dns;
}