summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/ip6_input.c
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2016-03-29 11:57:51 +0000
committerchl <chl@openbsd.org>2016-03-29 11:57:51 +0000
commit47c74071602febb35d1d989420535b04d63567fa (patch)
treed31df6e9d8bfcb9d398075120f5a5865caadcf4b /sys/netinet6/ip6_input.c
parentall the bpf_mtap functions now return whether to drop the packet or not (diff)
downloadwireguard-openbsd-47c74071602febb35d1d989420535b04d63567fa.tar.xz
wireguard-openbsd-47c74071602febb35d1d989420535b04d63567fa.zip
remove dead stores and unused variables
ok bluhm@ jca@
Diffstat (limited to 'sys/netinet6/ip6_input.c')
-rw-r--r--sys/netinet6/ip6_input.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index 81e9a393d5b..90efc1cf4a0 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_input.c,v 1.155 2016/03/14 23:08:06 krw Exp $ */
+/* $OpenBSD: ip6_input.c,v 1.156 2016/03/29 11:57:51 chl Exp $ */
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
/*
@@ -639,7 +639,6 @@ ip6_input(struct mbuf *m)
/* draft-itojun-ipv6-tcp-to-anycast */
if (isanycast && nxt == IPPROTO_TCP) {
if (m->m_len >= sizeof(struct ip6_hdr)) {
- ip6 = mtod(m, struct ip6_hdr *);
icmp6_error(m, ICMP6_DST_UNREACH,
ICMP6_DST_UNREACH_ADDR,
offsetof(struct ip6_hdr, ip6_dst));