From: Daniel Stenberg Date: Thu, 6 May 2004 11:10:51 +0000 (+0000) Subject: Michael Benedict brought a fix that fills in the errorbuffer properly X-Git-Tag: curl-7_12_0~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e73e553367730c6f4edebd40d723ae7319092a6;p=thirdparty%2Fcurl.git 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! --- diff --git a/lib/hostares.c b/lib/hostares.c index 35640d5b77..02212a2c36 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; }