upstream: don't exit the listener on send_rexec_state errors; ok

djm

OpenBSD-Commit-ID: 57cbd757d130d3f45b7d41310b3a15eeec137d5c
This commit is contained in:
markus@openbsd.org 2020-07-03 10:10:17 +00:00 committed by Darren Tucker
parent 03da4c2b70
commit 8af4a74369

4
sshd.c
View File

@ -1,4 +1,4 @@
/* $OpenBSD: sshd.c,v 1.557 2020/06/18 23:34:19 djm Exp $ */
/* $OpenBSD: sshd.c,v 1.558 2020/07/03 10:10:17 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -965,7 +965,7 @@ send_rexec_state(int fd, struct sshbuf *conf)
rexec_send_rng_seed(m);
#endif
if (ssh_msg_send(fd, 0, m) == -1)
fatal("%s: ssh_msg_send failed", __func__);
error("%s: ssh_msg_send failed", __func__);
sshbuf_free(m);
sshbuf_free(inc);