diff --git a/libssh/poll.c b/libssh/poll.c index dbc2ec11..be3f6281 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; }