Date: Thu, 6 Nov 2008 12:33:33 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/netinet tcp_input.c Message-ID: <200811061233.mA6CXmum041470@repoman.freebsd.org>
index | next in thread | raw e-mail
bz 2008-11-06 12:33:33 UTC
FreeBSD src repository
Modified files:
sys/netinet tcp_input.c
Log:
SVN rev 184720 on 2008-11-06 12:33:33Z by bz
Fix a bug introduced with r182851 splitting tcp_mss() into
tcp_mss() and tcp_mss_update() so that tcp_mtudisc() could
re-use the same code.
In case we return early and got a metricptr to pass the hostcache
info back to the caller we need to initialize the data to a defined
state (zero it) as tcp_hc_get() would do if there was no hit.
Without that the caller would check on random stack garbage which
could lead to undefined results.
This only affected tcp_mss() if there was no routing entry for the peer,
tcp_mtudisc() was not affected.
MFC after: 2 months (along with r182851)
Revision Changes Path
1.388 +9 -1 src/sys/netinet/tcp_input.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811061233.mA6CXmum041470>
