diff options
author | fenner <fenner@FreeBSD.org> | 1997-10-07 21:10:06 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1997-10-07 21:10:06 +0000 |
commit | aa0e9691a0bfe95ed60368820d85c1c76a293784 (patch) | |
tree | 32d463b76c38f236019d6ccb7d2b92298de0de8d /libexec/telnetd | |
parent | 5e2703d7ee0879847269df432ef3737ec99b2bd8 (diff) | |
download | FreeBSD-src-aa0e9691a0bfe95ed60368820d85c1c76a293784.zip FreeBSD-src-aa0e9691a0bfe95ed60368820d85c1c76a293784.tar.gz |
Don't allow the window to be increased beyond what is possible to
represent in the TCP header. The old code did effectively:
win = min(win, MAX_ALLOWED);
win = max(win, what_i_think_i_advertised_last_time);
so if what_i_think_i_advertised_last_time is bigger than can be
represented in the header (e.g. large buffers and no window scaling)
then we stuff a too-big number into a short. This fix reverses the
order of the comparisons.
PR: kern/4712
Diffstat (limited to 'libexec/telnetd')
0 files changed, 0 insertions, 0 deletions