channel: Add SSH_CHANNEL_FLAG_CLOSED_LOCAL

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 13b9d268d4)
This commit is contained in:
Andreas Schneider
2018-12-10 14:55:13 +01:00
parent 79289dc506
commit bcdbc11732
2 changed files with 9 additions and 3 deletions

View File

@@ -1164,6 +1164,7 @@ int ssh_channel_close(ssh_channel channel)
if (rc == SSH_OK) {
channel->state = SSH_CHANNEL_STATE_CLOSED;
channel->flags |= SSH_CHANNEL_FLAG_CLOSED_LOCAL;
}
rc = ssh_channel_flush(channel);