From 9b694f396c4d391f27802eba0cc3f708959324b1 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 26 Jan 2019 14:21:46 +0100 Subject: [PATCH] packet: Add missing error check in packet_send2() Found by csbuild. Signed-off-by: Andreas Schneider --- src/packet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/packet.c b/src/packet.c index 39ecf362..1181ca7d 100644 --- a/src/packet.c +++ b/src/packet.c @@ -1606,6 +1606,9 @@ static int packet_send2(ssh_session session) } rc = ssh_packet_write(session); + if (rc == SSH_ERROR) { + goto error; + } session->send_seq++; if (crypto != NULL) { struct ssh_cipher_struct *cipher = NULL;