break; fallthroughs in win32 code
This commit is contained in:
parent
d3f854c21b
commit
ae9ad1ef6f
@ -542,11 +542,11 @@ static int libssh2_blocking_read(LIBSSH2_SESSION *session, unsigned char *buf, s
|
|||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
switch (WSAGetLastError()) {
|
switch (WSAGetLastError()) {
|
||||||
case WSAEWOULDBLOCK: errno = EAGAIN;
|
case WSAEWOULDBLOCK: errno = EAGAIN; break;
|
||||||
case WSAENOTCONN:
|
case WSAENOTCONN:
|
||||||
case WSAENOTSOCK:
|
case WSAENOTSOCK:
|
||||||
case WSAECONNABORTED: errno = EBADF;
|
case WSAECONNABORTED: errno = EBADF; break;
|
||||||
case WSAEINTR: errno = EINTR;
|
case WSAEINTR: errno = EINTR; break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (errno == EAGAIN) {
|
if (errno == EAGAIN) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user