poll: Fixed another wrong invalid fd check in bsd_poll.
Этот коммит содержится в:
родитель
edffc2a291
Коммит
f4facc4e10
@ -136,7 +136,7 @@ static int bsd_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout) {
|
|||||||
|
|
||||||
/* compute fd_sets and find largest descriptor */
|
/* compute fd_sets and find largest descriptor */
|
||||||
for (max_fd = 0, i = 0; i < nfds; i++) {
|
for (max_fd = 0, i = 0; i < nfds; i++) {
|
||||||
if (fds[i].fd < 0) {
|
if (fds[i].fd == (socket_t) -1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user