From e2480fbaba44a1ffb4006ff3f56512a98d8219c3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 22 Jun 2010 14:43:09 +0200 Subject: [PATCH] poll: Fixed a comparsion. --- libssh/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }