Commit b1da9817 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make sure the 'done' variable is always set to something in the

Curl_is_resolved() function
parent 0496598e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -408,13 +408,13 @@ CURLcode Curl_is_resolved(struct connectdata *conn, bool *done)
  if(count)
    ares_process(data->state.areschannel, &read_fds, &write_fds);

  *done = FALSE;

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

  return CURLE_OK;
}