From 90d545c64225783f1642dbff8b8857b7eb89ae42 Mon Sep 17 00:00:00 2001 From: Brad House Date: Sun, 8 Sep 2024 08:06:19 -0400 Subject: [PATCH] ares_process_fd() broken when read_fd and write_fd different --- src/lib/ares_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ares_process.c b/src/lib/ares_process.c index 1f2294f7..2735a1cb 100644 --- a/src/lib/ares_process.c +++ b/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; }