diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-06-17 11:47:39 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-06-17 11:49:28 +0200 |
commit | d3a4e01137f0930ad1d0301c9f94dca23026b474 (patch) | |
tree | 647ca451c987b45207a065dbcc2cbd3bc66d694a | |
parent | a1b9ae5048c1612650d7754c0d6db18304dedf09 (diff) | |
download | libssh-d3a4e01137f0930ad1d0301c9f94dca23026b474.tar.gz libssh-d3a4e01137f0930ad1d0301c9f94dca23026b474.tar.xz libssh-d3a4e01137f0930ad1d0301c9f94dca23026b474.zip |
poll: Fixed another wrong invalid fd check in bsd_poll.
-rw-r--r-- | libssh/poll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/poll.c b/libssh/poll.c index 7a25f33e..6221e90c 100644 --- a/libssh/poll.c +++ b/libssh/poll.c @@ -111,7 +111,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; } |