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:
Mikolaj Golub 2011-11-11 14:09:09 +00:00
parent a482a69868
commit 040ee1ec95

View File

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