mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 18:50:27 +09:00
packet: Add missing error check in packet_send2()
Found by csbuild. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user