Commit 33cf204e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

don't set done==TRUE if the host name doesn't resolve

parent dafc652f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -409,10 +409,9 @@ CURLcode Curl_is_resolved(struct connectdata *conn, bool *done)
    ares_process(data->state.areschannel, &read_fds, &write_fds);

  if(conn->async.done) {
    *done = TRUE;

    if(!conn->async.dns)
      return CURLE_COULDNT_RESOLVE_HOST;
    *done = TRUE;
  }
  else
    *done = FALSE;