aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-06-22 14:43:09 +0200
committerAndreas Schneider <asn@cynapses.org>2010-06-22 14:43:09 +0200
commite2480fbaba44a1ffb4006ff3f56512a98d8219c3 (patch)
treef67d2f7ce3ac93edd83690ca49b58b7c8b177536
parent23e6b36209fd899161fdac4e365d545ecac8aa2f (diff)
downloadlibssh-e2480fbaba44a1ffb4006ff3f56512a98d8219c3.tar.gz
libssh-e2480fbaba44a1ffb4006ff3f56512a98d8219c3.tar.xz
libssh-e2480fbaba44a1ffb4006ff3f56512a98d8219c3.zip
poll: Fixed a comparsion.
-rw-r--r--libssh/poll.c2
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;
}