From 040ee1ec9574d05f86e6c2bdfb38d50eea2f4a58 Mon Sep 17 00:00:00 2001 From: Mikolaj Golub Date: Fri, 11 Nov 2011 14:09:09 +0000 Subject: [PATCH] Fix false positive EADDRINUSE that could be returned by bind, due to the typo made in r227207. Reported by: kib Tested by: kib --- sys/netinet6/in6_pcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index d29762d8585a..8f829635cdcf 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