Commit 8e73e553 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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!
parent 55c015c1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;
  }