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

* src/channel.c (adjust_rec_window): Check the state of the

channel, and send the SSH_MSG_CHANNEL_WINDOW_ADJUST message only
if it makes sense.

Rev: src/channel.c:1.81
parent 3b348cda
......@@ -432,8 +432,12 @@ adjust_rec_window(struct flow_controlled *f, UINT32 written)
{
CAST_SUBTYPE(ssh_channel, channel, f);
A_WRITE(channel->write,
prepare_window_adjust(channel, 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
| CHANNEL_SENT_CLOSE)))
A_WRITE(channel->write,
prepare_window_adjust(channel, written));
}
void
......
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