ares_process_fd() broken when read_fd and write_fd different

coverity_scan
Brad House 3 months ago
parent e0ef6a8a7a
commit 90d545c642
  1. 2
      src/lib/ares_process.c

@ -277,7 +277,7 @@ void ares_process_fd(ares_channel_t *channel, ares_socket_t read_fd,
if (write_fd != read_fd) {
nevents++;
}
events[nevents - 1].fd = read_fd;
events[nevents - 1].fd = write_fd;
events[nevents - 1].events |= ARES_FD_EVENT_WRITE;
}

Loading…
Cancel
Save