summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2008-08-08 17:49:21 +0000
committerbluhm <bluhm@openbsd.org>2008-08-08 17:49:21 +0000
commitb6feb6bb2935b819b0d800fb8722c94b2d2258fc (patch)
tree7bf7be0c5f1871f88aebb187bcadfc91567fd708
parentWrap long lines and remove useless comment. (diff)
downloadwireguard-openbsd-b6feb6bb2935b819b0d800fb8722c94b2d2258fc.tar.xz
wireguard-openbsd-b6feb6bb2935b819b0d800fb8722c94b2d2258fc.zip
Do not latch the IPSec tdb to the inpcb unconditionally. This has
been moved to the protocol layer from ip_output at 2002/05/31. The IPv6 part has been forgotten so packets could get encrypted unintentionally. ok hshoexer markus
-rw-r--r--sys/netinet6/ip6_output.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index 1442e76ecc7..e0fbb97cb02 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_output.c,v 1.103 2008/07/30 15:07:40 canacar Exp $ */
+/* $OpenBSD: ip6_output.c,v 1.104 2008/08/08 17:49:21 bluhm Exp $ */
/* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */
/*
@@ -509,10 +509,6 @@ ip6_output(struct mbuf *m0, struct ip6_pktopts *opt, struct route_in6 *ro,
goto done;
}
- /* Latch to PCB */
- if (inp)
- tdb_add_inp(tdb, inp, 0);
-
m->m_flags &= ~(M_BCAST | M_MCAST); /* just in case */
/* Callee frees mbuf */