diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-09-25 15:43:07 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-10-24 09:48:35 +0200 |
commit | cde13b0f0083c7392c2b8e75d2c7ff7d84e22b2b (patch) | |
tree | ee0cb051a3ad08c16257ebfdcd4799a8d2dcaffd /src/channels.c | |
parent | 8f316239474925802d3223a1f92c2e5c6afd2af5 (diff) | |
download | libssh-cde13b0f0083c7392c2b8e75d2c7ff7d84e22b2b.tar.gz libssh-cde13b0f0083c7392c2b8e75d2c7ff7d84e22b2b.tar.xz libssh-cde13b0f0083c7392c2b8e75d2c7ff7d84e22b2b.zip |
channels: Check return code of ssh_packet_send()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/channels.c')
-rw-r--r-- | src/channels.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/channels.c b/src/channels.c index 6a5849e8..f031b021 100644 --- a/src/channels.c +++ b/src/channels.c @@ -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) { |