From f4facc4e10e0a9e7e6c4564d8f0ef903a15af770 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 17 Jun 2010 11:47:39 +0200 Subject: poll: Fixed another wrong invalid fd check in bsd_poll. --- libssh/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh/poll.c') diff --git a/libssh/poll.c b/libssh/poll.c index 94063d8..68e3c41 100644 --- a/libssh/poll.c +++ b/libssh/poll.c @@ -136,7 +136,7 @@ static int bsd_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout) { /* compute fd_sets and find largest descriptor */ for (max_fd = 0, i = 0; i < nfds; i++) { - if (fds[i].fd < 0) { + if (fds[i].fd == (socket_t) -1) { continue; } -- cgit v1.2.3