summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/icmp6.c3
-rw-r--r--sys/netinet6/ip6_output.c4
2 files changed, 2 insertions, 5 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index 027bbcdc25e..90405ccb4c9 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp6.c,v 1.176 2015/10/30 09:39:42 bluhm Exp $ */
+/* $OpenBSD: icmp6.c,v 1.177 2015/11/03 21:39:34 chl Exp $ */
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
/*
@@ -587,7 +587,6 @@ icmp6_input(struct mbuf **mp, int *offp, int proto)
n->m_next = n0;
} else {
deliverecho:
- nip6 = mtod(n, struct ip6_hdr *);
IP6_EXTHDR_GET(nicmp6, struct icmp6_hdr *, n, off,
sizeof(*nicmp6));
noff = off;
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index e86fd528caf..b9c5dc3c01b 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_output.c,v 1.197 2015/11/03 21:11:48 naddy Exp $ */
+/* $OpenBSD: ip6_output.c,v 1.198 2015/11/03 21:39:34 chl Exp $ */
/* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */
/*
@@ -222,7 +222,6 @@ ip6_output(struct mbuf *m0, struct ip6_pktopts *opt, struct route_in6 *ro,
* Check if there was an outgoing SA bound to the flow
* from a transport protocol.
*/
- ip6 = mtod(m, struct ip6_hdr *);
/* Do we have any pending SAs to apply ? */
tdb = ipsp_spd_lookup(m, AF_INET6, sizeof(struct ip6_hdr),
@@ -498,7 +497,6 @@ reroute:
}
if (m == NULL)
goto done;
- ip6 = mtod(m, struct ip6_hdr *);
/*
* PF_TAG_REROUTE handling or not...
* Packet is entering IPsec so the routing is