Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
f99c3af6
Commit
f99c3af6
authored
May 09, 2006
by
Niels Möller
Browse files
(handle_open_confirm): Impose limit on send_max_packet.
Rev: src/channel.c:1.125.2.23
parent
9c00c2ac
Changes
1
Show whitespace changes
Inline
Side-by-side
src/channel.c
View file @
f99c3af6
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment