diff options
author | trociny <trociny@FreeBSD.org> | 2011-11-11 14:09:09 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2011-11-11 14:09:09 +0000 |
commit | e290adc1a60aa8ec0a0d7d552332a4ad002ae6a5 (patch) | |
tree | 154e872817507a642dc2ec939f389311bf8ca4ee /sys/netinet6 | |
parent | e4b966f3b721eea1b5293148677352a7fd13e167 (diff) | |
download | FreeBSD-src-e290adc1a60aa8ec0a0d7d552332a4ad002ae6a5.zip FreeBSD-src-e290adc1a60aa8ec0a0d7d552332a4ad002ae6a5.tar.gz |
Fix false positive EADDRINUSE that could be returned by bind, due to
the typo made in r227207.
Reported by: kib
Tested by: kib
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6_pcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index d29762d..8f82963 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -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 |