aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeng Tan <mtan@mta.corp.wallix.com>2018-02-01 13:41:30 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-02-01 18:23:38 +0100
commitf19158cadf99cf9965fa9f6a8afaf19f91269e2a (patch)
treeb76cf122ea0176e5b89f3e9500ae6e640a87d22e
parent459677e20e92ac698a87c25562a5850528406400 (diff)
downloadlibssh-f19158cadf99cf9965fa9f6a8afaf19f91269e2a.tar.gz
libssh-f19158cadf99cf9965fa9f6a8afaf19f91269e2a.tar.xz
libssh-f19158cadf99cf9965fa9f6a8afaf19f91269e2a.zip
Set channel as bound when accepting channel open request
Signed-off-by: Meng Tan <mtan@wallix.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/messages.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/messages.c b/src/messages.c
index 4e4141e0..763a2732 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -1161,6 +1161,7 @@ int ssh_message_channel_request_open_reply_accept_channel(ssh_message msg, ssh_c
chan->remote_maxpacket = msg->channel_request_open.packet_size;
chan->remote_window = msg->channel_request_open.window;
chan->state = SSH_CHANNEL_STATE_OPEN;
+ chan->flags &= ~SSH_CHANNEL_FLAG_NOT_BOUND;
rc = ssh_buffer_pack(session->out_buffer,
"bdddd",