aboutsummaryrefslogtreecommitdiff
path: root/sbin/newfs
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2003-11-23 03:02:00 +0000
committerThomas Moestl <tmm@FreeBSD.org>2003-11-23 03:02:00 +0000
commit1f831750b50ca976c5ef0fa68e7189577c97108a (patch)
treeb32f2ddee8fa3da844cda3e001bbb6588bcd6f68 /sbin/newfs
parent90768c55d488a67e378531a74e261ee684715916 (diff)
downloadsrc-1f831750b50ca976c5ef0fa68e7189577c97108a.tar.gz
src-1f831750b50ca976c5ef0fa68e7189577c97108a.zip
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)
Notes
Notes: svn path=/head/; revision=122960
Diffstat (limited to 'sbin/newfs')
0 files changed, 0 insertions, 0 deletions