]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bzero() the the sockaddr used for the destination address for
authorThomas Moestl <tmm@FreeBSD.org>
Sun, 23 Nov 2003 03:02:00 +0000 (03:02 +0000)
committerThomas Moestl <tmm@FreeBSD.org>
Sun, 23 Nov 2003 03:02:00 +0000 (03:02 +0000)
commit1f831750b50ca976c5ef0fa68e7189577c97108a
treeb32f2ddee8fa3da844cda3e001bbb6588bcd6f68
parent90768c55d488a67e378531a74e261ee684715916
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)
sys/netinet/in_pcb.c