Skip to content

Commit

Permalink
sshd don't exit on transient read errors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
djmdjm committed Apr 14, 2021
1 parent d5d6b7d commit 2dc3280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serverloop.c
Expand Up @@ -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),
Expand Down

0 comments on commit 2dc3280

Please sign in to comment.