1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

poll: Fixed a comparsion.

This commit is contained in:
Andreas Schneider
2010-06-22 14:43:09 +02:00
parent c3833c6c03
commit 07f607ec4c

View File

@@ -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;
}