mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
Set channel as bound when accepting channel open request
Signed-off-by: Meng Tan <mtan@wallix.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
459677e20e
commit
f19158cadf
@@ -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_maxpacket = msg->channel_request_open.packet_size;
|
||||||
chan->remote_window = msg->channel_request_open.window;
|
chan->remote_window = msg->channel_request_open.window;
|
||||||
chan->state = SSH_CHANNEL_STATE_OPEN;
|
chan->state = SSH_CHANNEL_STATE_OPEN;
|
||||||
|
chan->flags &= ~SSH_CHANNEL_FLAG_NOT_BOUND;
|
||||||
|
|
||||||
rc = ssh_buffer_pack(session->out_buffer,
|
rc = ssh_buffer_pack(session->out_buffer,
|
||||||
"bdddd",
|
"bdddd",
|
||||||
|
|||||||
Reference in New Issue
Block a user