stricter handling of channel window limits
authordjm <djm@openbsd.org>
Mon, 18 Dec 2023 14:47:20 +0000 (14:47 +0000)
committerdjm <djm@openbsd.org>
Mon, 18 Dec 2023 14:47:20 +0000 (14:47 +0000)
commit0d76a31f7445394c46dbe6548d1f7ac268237d97
tree6fe9d2f449c3a791d0ed668ecf87917754baf74d
parenteead3eb2279781736d1ec900982388cc8e13de4b
stricter handling of channel window limits

This makes ssh/sshd more strict in handling non-compliant peers that
send more data than the advertised channel window allows. Previously
the additional data would be silently discarded. This change will
cause ssh/sshd to terminate the connection if the channel window is
exceeded by more than a small grace allowance.

ok markus@
usr.bin/ssh/channels.c
usr.bin/ssh/channels.h