From 7ecec3eb94de18e339fe3d073388f9e4d1521389 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 17 Jun 2010 12:01:27 +0200 Subject: poll: Fixed brackets. --- libssh/poll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libssh') diff --git a/libssh/poll.c b/libssh/poll.c index 68e3c41..5ad12ca 100644 --- a/libssh/poll.c +++ b/libssh/poll.c @@ -192,11 +192,11 @@ static int bsd_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout) { /* support for POLLHUP */ ret = recv(fds[i].fd, data, 64, MSG_PEEK); #ifdef _WIN32 - if (ret == -1) && + if ((ret == -1) && (errno == WSAESHUTDOWN || errno == WSAECONNRESET || errno == WSAECONNABORTED || errno == WSAENETRESET)) { #else - if (ret == -1) && + if ((ret == -1) && (errno == ESHUTDOWN || errno == ECONNRESET || errno == ECONNABORTED || errno == ENETRESET)) { #endif -- cgit v1.2.3