diff --git a/src/tls_schannel.c b/src/tls_schannel.c index 0c49350..2b95ab2 100644 --- a/src/tls_schannel.c +++ b/src/tls_schannel.c @@ -455,11 +455,10 @@ int tls_read(tls_t *tls, void * const buff, const size_t len) bytes = sock_read(tls->sock, tls->recvbuffer + tls->recvbufferpos, tls->recvbuffermaxlen - tls->recvbufferpos); - if (bytes == 0) - { - tls->lasterror = WSAETIMEDOUT; - return -1; - } + if (bytes == 0) { + tls->lasterror = WSAETIMEDOUT; + return -1; + } if (bytes == -1) { if (!tls_is_recoverable(sock_error())) {