channels: Check return code of ssh_packet_send()

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-09-25 15:43:07 +02:00
parent 8f31623947
commit cde13b0f00

View File

@@ -1106,6 +1106,9 @@ int ssh_channel_send_eof(ssh_channel channel)
"Sent a EOF on client channel (%d:%d)",
channel->local_channel,
channel->remote_channel);
if (rc != SSH_OK) {
goto error;
}
rc = ssh_channel_flush(channel);
if (rc == SSH_ERROR) {