diff options
Diffstat (limited to 'libssh/poll.c')
-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; } |