Fix tls_set_socket on WIN32

This commit is contained in:
Zhi Guan
2024-06-13 12:18:27 +08:00
parent 02cfe3f3aa
commit ed6b7f926e

View File

@@ -2319,7 +2319,7 @@ void tls_cleanup(TLS_CONNECT *conn)
int tls_set_socket(TLS_CONNECT *conn, tls_socket_t sock)
{
int flags;
int flags = 0;
#ifdef WIN32
if( ioctlsocket(sock, FIONBIO, &flags) != 0) {
error_puts("socket in non-blocking mode");