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
a63c3e72
Commit
a63c3e72
authored
Sep 18, 2005
by
Niels Möller
Browse files
(channel_adjust_rec_window): Check that written > 0.
Rev: src/channel.c:1.125.2.12
parent
0af9bf7a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/channel.c
View file @
a63c3e72
...
...
@@ -268,7 +268,7 @@ channel_adjust_rec_window(struct ssh_channel *channel, uint32_t written)
{
/* NOTE: The channel object (referenced as a flow-control callback)
* may live longer than the actual channel. */
if
(
!
(
channel
->
flags
&
(
CHANNEL_RECEIVED_EOF
|
CHANNEL_RECEIVED_CLOSE
if
(
written
&&
!
(
channel
->
flags
&
(
CHANNEL_RECEIVED_EOF
|
CHANNEL_RECEIVED_CLOSE
|
CHANNEL_SENT_CLOSE
)))
SSH_CONNECTION_WRITE
(
channel
->
connection
,
prepare_window_adjust
(
channel
,
written
));
}
...
...
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