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:47:39 +0200 |
| commit | f4facc4e10e0a9e7e6c4564d8f0ef903a15af770 (patch) | |
| tree | c92397a19774ca082d2937cd87e060590e080871 /libssh/poll.c | |
| parent | edffc2a291521dba6e7de57cb1d70316a3dac66d (diff) | |
| download | libssh-f4facc4e10e0a9e7e6c4564d8f0ef903a15af770.tar.gz libssh-f4facc4e10e0a9e7e6c4564d8f0ef903a15af770.tar.xz libssh-f4facc4e10e0a9e7e6c4564d8f0ef903a15af770.zip | |
poll: Fixed another wrong invalid fd check in bsd_poll.
Diffstat (limited to 'libssh/poll.c')
| -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 94063d8c..68e3c41c 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; } |
