tests/server: replace errno with SOCKERRNO in sockfilt, socksd, sws

To correctly read the winsock2 result code on Windows.

Follow-up to de2126b182 #5241
Ref: 5e855bbd18 (r38507132)
Ref: #14854
Closes #16553
This commit is contained in:
Viktor Szakats 2025-03-04 15:32:18 +01:00
parent d251ecb5c8
commit adcfd4fb3e
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 8 additions and 7 deletions

View file

@ -740,7 +740,7 @@ static bool incoming(curl_socket_t listenfd)
logmsg("signalled to die, exiting...");
return FALSE;
}
} while((rc == -1) && ((error = errno) == EINTR));
} while((rc == -1) && ((error = SOCKERRNO) == EINTR));
if(rc < 0) {
logmsg("select() failed with error: (%d) %s",