Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 2010 16:48:59 +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:  <201001061649.o06GnKwg003274@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001061649.o06GnKwg003274>