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

(channel_adjust_rec_window): Check that written > 0.

Rev: src/channel.c:1.125.2.12
parent 0af9bf7a
......@@ -268,8 +268,8 @@ 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
| CHANNEL_SENT_CLOSE)))
if (written && ! (channel->flags & (CHANNEL_RECEIVED_EOF | CHANNEL_RECEIVED_CLOSE
| CHANNEL_SENT_CLOSE)))
SSH_CONNECTION_WRITE(channel->connection, prepare_window_adjust(channel, written));
}
......
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