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:48 +0200
commit07f607ec4c104d73b9ce258b16673c6fb9013861 (patch)
tree3a45eb933b68bb3b60af386e50e7a8c6fc11628e
parentc3833c6c03726f5041664931f2b413734613d959 (diff)
downloadlibssh-07f607ec4c104d73b9ce258b16673c6fb9013861.tar.gz
libssh-07f607ec4c104d73b9ce258b16673c6fb9013861.tar.xz
libssh-07f607ec4c104d73b9ce258b16673c6fb9013861.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 dbc2ec1..be3f628 100644
--- a/libssh/poll.c
+++ b/libssh/poll.c
@@ -158,7 +158,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;
}