aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-06-17 11:47:39 +0200
committerAndreas Schneider <asn@cynapses.org>2010-06-17 11:47:39 +0200
commitf4facc4e10e0a9e7e6c4564d8f0ef903a15af770 (patch)
treec92397a19774ca082d2937cd87e060590e080871
parentedffc2a291521dba6e7de57cb1d70316a3dac66d (diff)
downloadlibssh-f4facc4e10e0a9e7e6c4564d8f0ef903a15af770.tar.gz
libssh-f4facc4e10e0a9e7e6c4564d8f0ef903a15af770.tar.xz
libssh-f4facc4e10e0a9e7e6c4564d8f0ef903a15af770.zip
poll: Fixed another wrong invalid fd check in bsd_poll.
-rw-r--r--libssh/poll.c2
1 files changed, 1 insertions, 1 deletions
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;
}