diff options
author | 2017-05-13 17:41:57 +0000 | |
---|---|---|
committer | 2017-05-13 17:41:57 +0000 | |
commit | 43aacf407595609776a758c6c9031c485f49fb09 (patch) | |
tree | d542818f318f8bb88a558be8a9372c52e6330184 /sys/netinet/tcp_usrreq.c | |
parent | Pick aes.c instead of rijndael.c (diff) | |
download | wireguard-openbsd-43aacf407595609776a758c6c9031c485f49fb09.tar.xz wireguard-openbsd-43aacf407595609776a758c6c9031c485f49fb09.zip |
Do not check for mapped addresses in tcp_usrreq(PRU_CONNECT),
this is done in in6_pcbconnect().
OK mpi@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index a08cb0372ac..1ac6d1322f4 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.148 2017/05/12 20:34:29 bluhm Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.149 2017/05/13 17:41:57 bluhm Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -242,8 +242,7 @@ tcp_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, &mtod(nam, struct sockaddr_in6 *)->sin6_addr; if (IN6_IS_ADDR_UNSPECIFIED(addr6) || - IN6_IS_ADDR_MULTICAST(addr6) || - IN6_IS_ADDR_V4MAPPED(addr6)) { + IN6_IS_ADDR_MULTICAST(addr6)) { error = EINVAL; break; } |