CVSROOT: /cvs Module name: src Changes by: [email protected] 2024/12/20 12:20:34
Modified files:
sys/netinet : tcp_input.c
Log message:
Fix signed integer comparison in tcp mss.
In tcp_mss_adv() max(9) was used to guarantee that mss it not too
small. Unfortunately max() uses u_int and mss could get negative
in some error conditions.
Rearrange the code to directly return in case of errors. Also read
tcp_mssdflt only once to head towards atomic integer sysctl.
OK mvs@
