cvs commit: src/sys/netinet in_pcb.c

Thomas Moestl tmm at FreeBSD.org
Sat Nov 22 19:09:27 PST 2003


On Sat, 2003/11/22 at 19:02:00 -0800, Thomas Moestl wrote:
> 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
		       ^, andre

(oops).

	- Thomas

-- 
Thomas Moestl <t.moestl at tu-bs.de>	http://www.tu-bs.de/~y0015675/
              <tmm at FreeBSD.org>		http://people.FreeBSD.org/~tmm/
PGP fingerprint: 1C97 A604 2BD0 E492 51D0  9C0F 1FE6 4F1D 419C 776C


More information about the cvs-src mailing list