From 2ff01152c76e82d3626e3afb592312050d4a6516 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 6 Feb 2025 23:01:55 +0100 Subject: [PATCH] asyn-thread: fix the returned bitmask from Curl_resolver_getsock It should use a bitwise OR, not an assignment so that it does not override the c-ares bits. Closes #16227 --- lib/asyn-thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c index 8d6a9deb4a..8383edad72 100644 --- a/lib/asyn-thread.c +++ b/lib/asyn-thread.c @@ -688,7 +688,7 @@ int Curl_resolver_getsock(struct Curl_easy *data, curl_socket_t *socks) if(td) { /* return read fd to client for polling the DNS resolution status */ socks[socketi] = td->tsd.sock_pair[0]; - ret_val = GETSOCK_READSOCK(socketi); + ret_val |= GETSOCK_READSOCK(socketi); } else { #endif