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
This commit is contained in:
Daniel Stenberg 2025-02-06 23:01:55 +01:00
parent c0d38f547b
commit 2ff01152c7
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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