Index: sshd.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/sshd.c,v diff -u -p -r1.612 sshd.c --- sshd.c 15 Sep 2024 01:11:26 -0000 1.612 +++ sshd.c 23 Sep 2024 00:04:16 -0000 @@ -704,9 +704,8 @@ send_rexec_state(int fd, struct sshbuf * /* We need to fit the entire message inside the socket send buffer */ sz = ROUNDUP(sshbuf_len(m) + 5, 16*1024); if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &sz, sizeof sz) == -1) - fatal_f("setsockopt SO_SNDBUF: %s", strerror(errno)); - - if (ssh_msg_send(fd, 0, m) == -1) + error_f("setsockopt SO_SNDBUF: %s", strerror(errno)); + else if (ssh_msg_send(fd, 0, m) == -1) error_f("ssh_msg_send failed"); sshbuf_free(m);