diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-06-22 14:43:09 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-06-22 14:43:09 +0200 |
commit | e2480fbaba44a1ffb4006ff3f56512a98d8219c3 (patch) | |
tree | f67d2f7ce3ac93edd83690ca49b58b7c8b177536 | |
parent | 23e6b36209fd899161fdac4e365d545ecac8aa2f (diff) | |
download | libssh-e2480fbaba44a1ffb4006ff3f56512a98d8219c3.tar.gz libssh-e2480fbaba44a1ffb4006ff3f56512a98d8219c3.tar.xz libssh-e2480fbaba44a1ffb4006ff3f56512a98d8219c3.zip |
poll: Fixed a comparsion.
-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 50ce0062..8aeebb42 100644 --- a/libssh/poll.c +++ b/libssh/poll.c @@ -133,7 +133,7 @@ static int bsd_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout) { } } - if (max_fd == SSH_INVALID_SOCKET || rc = -1) { + if (max_fd == SSH_INVALID_SOCKET || rc == -1) { errno = EINVAL; return -1; } |