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
@ -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