summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/netinet/tcp_usrreq.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index e177c75373f..6c09f5b896d 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_usrreq.c,v 1.101 2010/04/20 22:05:43 tedu Exp $ */
+/* $OpenBSD: tcp_usrreq.c,v 1.102 2010/06/07 13:08:43 claudio Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */
/*
@@ -271,10 +271,7 @@ tcp_usrreq(so, req, m, nam, control, p)
if (IN6_IS_ADDR_UNSPECIFIED(in6_addr) ||
IN6_IS_ADDR_MULTICAST(in6_addr) ||
- (IN6_IS_ADDR_V4MAPPED(in6_addr) &&
- ((in6_addr->s6_addr32[3] == INADDR_ANY) ||
- IN_MULTICAST(in6_addr->s6_addr32[3]) ||
- in_broadcast(sin->sin_addr, NULL)))) {
+ IN6_IS_ADDR_V4MAPPED(in6_addr)) {
error = EINVAL;
break;
}