From 07f607ec4c104d73b9ce258b16673c6fb9013861 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 22 Jun 2010 14:43:09 +0200 Subject: poll: Fixed a comparsion. --- libssh/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh') 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; } -- cgit v1.2.3