aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'libssh')
-rw-r--r--libssh/poll.c2
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;
}