asyn-thread: repair build with disabled socketpair

Reported-by: Abhinav Singhal
Bug: https://curl.se/mail/lib-2025-03/0031.html
Closes #16877
This commit is contained in:
Daniel Stenberg 2025-03-30 23:18:32 +02:00
parent 083da46c60
commit b2926e2248
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -188,8 +188,10 @@ int init_thread_sync_data(struct thread_data *td,
return 0;
tsd->port = port;
#ifndef CURL_DISABLE_SOCKETPAIR
tsd->sock_pair[0] = CURL_SOCKET_BAD;
tsd->sock_pair[1] = CURL_SOCKET_BAD;
#endif
tsd->ref_count = 0;
#ifdef HAVE_GETADDRINFO