Commit f99c3af6 authored by Niels Möller's avatar Niels Möller
Browse files

(handle_open_confirm): Impose limit on send_max_packet.

Rev: src/channel.c:1.125.2.23
parent 9c00c2ac
......@@ -1190,6 +1190,11 @@ handle_open_confirm(struct ssh_connection *connection,
{
channel->remote_channel_number = remote_channel_number;
channel->send_window_size = window_size;
/* Impose a limit, since our send buffers aren't dimensioned
for arbitrarily large packets. */
if (max_packet > SSH_MAX_DATA_SIZE)
max_packet = SSH_MAX_DATA_SIZE;
channel->send_max_packet = max_packet;
ssh_connection_activate_channel(connection, local_channel_number);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment