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:48 +0200 |
commit | 07f607ec4c104d73b9ce258b16673c6fb9013861 (patch) | |
tree | 3a45eb933b68bb3b60af386e50e7a8c6fc11628e /libssh | |
parent | c3833c6c03726f5041664931f2b413734613d959 (diff) | |
download | libssh-07f607ec4c104d73b9ce258b16673c6fb9013861.tar.gz libssh-07f607ec4c104d73b9ce258b16673c6fb9013861.tar.xz libssh-07f607ec4c104d73b9ce258b16673c6fb9013861.zip |
poll: Fixed a comparsion.
Diffstat (limited to 'libssh')
-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 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; } |