Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2003 19:02:00 -0800 (PST)
From:      Thomas Moestl <tmm@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet in_pcb.c
Message-ID:  <200311230302.hAN3209U045821@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
tmm         2003/11/22 19:02:00 PST

  FreeBSD src repository

  Modified files:
    sys/netinet          in_pcb.c 
  Log:
  bzero() the the sockaddr used for the destination address for
  rtalloc_ign() in in_pcbconnect_setup() before it is filled out.
  Otherwise, stack junk would be left in sin_zero, which could
  cause host routes to be ignored because they failed the comparison
  in rn_match().
  This should fix the wrong source address selection for connect() to
  127.0.0.1, among other things.
  
  Reviewed by:    sam
  Approved by:    re (rwatson)
  
  Revision  Changes    Path
  1.133     +1 -0      src/sys/netinet/in_pcb.c



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