diff options
author | djm@openbsd.org <djm@openbsd.org> | 2023-12-18 14:47:20 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2023-12-19 01:52:55 +1100 |
commit | 0cb50eefdd29f0fec31d0e71cc4b004a5f704e67 (patch) | |
tree | 8bca2581bdf5d716cd55395c079167e9b708d58d /channels.h | |
parent | 4448a2938abc76e6bd33ba09b2ec17a216dfb491 (diff) |
upstream: 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@
OpenBSD-Commit-ID: 811e21b41831eba3dd7f67b3d409a438f20d3037
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: channels.h,v 1.153 2023/11/15 22:51:49 djm Exp $ */ +/* $OpenBSD: channels.h,v 1.154 2023/12/18 14:47:20 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -170,6 +170,7 @@ struct Channel { u_int remote_window; u_int remote_maxpacket; u_int local_window; + u_int local_window_exceeded; u_int local_window_max; u_int local_consumed; u_int local_maxpacket; |