mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Fix false positive EADDRINUSE that could be returned by bind, due to
the typo made in r227207. Reported by: kib Tested by: kib
This commit is contained in:
parent
a482a69868
commit
040ee1ec95
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227449
@ -270,7 +270,7 @@ in6_pcbbind(register struct inpcb *inp, struct sockaddr *nam,
|
||||
} else if (t && (reuseport == 0 ||
|
||||
(t->inp_flags2 & INP_REUSEPORT) == 0) &&
|
||||
(ntohl(t->inp_laddr.s_addr) != INADDR_ANY ||
|
||||
(t->inp_vflag & INP_IPV6PROTO) == 0))
|
||||
(t->inp_vflag & INP_IPV6PROTO) != 0))
|
||||
return (EADDRINUSE);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user