summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2011-11-11 14:09:09 +0000
committertrociny <trociny@FreeBSD.org>2011-11-11 14:09:09 +0000
commite290adc1a60aa8ec0a0d7d552332a4ad002ae6a5 (patch)
tree154e872817507a642dc2ec939f389311bf8ca4ee /sys/netinet6
parente4b966f3b721eea1b5293148677352a7fd13e167 (diff)
downloadFreeBSD-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.c2
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
OpenPOWER on IntegriCloud