sshd don't exit on transient read errors

openssh-8.5 introduced a regression that would cause sshd to exit
because of transient read errors on the network socket (e.g. EINTR,
EAGAIN). Reported by balu.gajjala AT gmail.com via bz3297
This commit is contained in:
Damien Miller 2021-04-14 11:42:55 +10:00
parent d5d6b7d76d
commit 2dc328023f
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ process_input(struct ssh *ssh, fd_set *readset, int connection_in)
return -1;
} else if (len == -1) {
if (errno == EINTR || errno == EAGAIN ||
errno != EWOULDBLOCK)
errno == EWOULDBLOCK)
return 0;
verbose("Read error from remote host %s port %d: %s",
ssh_remote_ipaddr(ssh), ssh_remote_port(ssh),