From owner-cvs-src-old@FreeBSD.ORG Wed Jan 6 16:49:20 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FB1F106568F for ; Wed, 6 Jan 2010 16:49:20 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6E7B48FC1F for ; Wed, 6 Jan 2010 16:49:20 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o06GnK8f003275 for ; Wed, 6 Jan 2010 16:49:20 GMT (envelope-from bz@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o06GnKwg003274 for cvs-src-old@freebsd.org; Wed, 6 Jan 2010 16:49:20 GMT (envelope-from bz@repoman.freebsd.org) Message-Id: <201001061649.o06GnKwg003274@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to bz@repoman.freebsd.org using -f From: "Bjoern A. Zeeb" Date: Wed, 6 Jan 2010 16:48:59 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/netinet tcp_input.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jan 2010 16:49:20 -0000 bz 2010-01-06 16:48:59 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/netinet tcp_input.c Log: SVN rev 201654 on 2010-01-06 16:48:59Z by bz MFC r184720: Fix a bug introduced with r182851 (r201653 in stable/7) 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. Revision Changes Path 1.370.2.16 +9 -1 src/sys/netinet/tcp_input.c