Fixed sock_read on Windows when returning cero

Fixed coding style
This commit is contained in:
Luis Angel Curiel Sanz
2013-04-19 10:46:47 +02:00
parent b41732ada7
commit cc9e29c671

View File

@@ -455,8 +455,7 @@ int tls_read(tls_t *tls, void * const buff, const size_t len)
bytes = sock_read(tls->sock, tls->recvbuffer + tls->recvbufferpos, bytes = sock_read(tls->sock, tls->recvbuffer + tls->recvbufferpos,
tls->recvbuffermaxlen - tls->recvbufferpos); tls->recvbuffermaxlen - tls->recvbufferpos);
if (bytes == 0) if (bytes == 0) {
{
tls->lasterror = WSAETIMEDOUT; tls->lasterror = WSAETIMEDOUT;
return -1; return -1;
} }