mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-08 06:03:47 +08:00
Fix tls_set_socket on WIN32
This commit is contained in:
@@ -2319,7 +2319,7 @@ void tls_cleanup(TLS_CONNECT *conn)
|
|||||||
|
|
||||||
int tls_set_socket(TLS_CONNECT *conn, tls_socket_t sock)
|
int tls_set_socket(TLS_CONNECT *conn, tls_socket_t sock)
|
||||||
{
|
{
|
||||||
int flags;
|
int flags = 0;
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if( ioctlsocket(sock, FIONBIO, &flags) != 0) {
|
if( ioctlsocket(sock, FIONBIO, &flags) != 0) {
|
||||||
error_puts("socket in non-blocking mode");
|
error_puts("socket in non-blocking mode");
|
||||||
|
|||||||
Reference in New Issue
Block a user