packet: Add missing error check in packet_send2()

Found by csbuild.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2019-01-26 14:21:46 +01:00
parent d41042f92d
commit 9b694f396c

View File

@@ -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;