summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2022-12-10 22:40:59 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2022-12-10 22:40:59 +0000
commit283a8469b25ca2d9b2ab984fd5bf5fd1c56e525d (patch)
treebd1535e505c08578ab0ec78be26b1fac12f1a01f /sys/netinet6
parent9b6d92d93335d0116e16a7dcc035421ce94b0b72 (diff)
Reuse off variable from previous line; no object change
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/icmp6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index 25c94b03b8c..9f67f56c9fc 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp6.c,v 1.245 2022/12/10 22:16:24 kn Exp $ */
+/* $OpenBSD: icmp6.c,v 1.246 2022/12/10 22:40:58 kn Exp $ */
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
/*
@@ -396,7 +396,7 @@ icmp6_input(struct mbuf **mp, int *offp, int proto, int af)
struct ip6_hdr *ip6, *nip6;
struct icmp6_hdr *icmp6, *nicmp6;
int off = *offp;
- int icmp6len = m->m_pkthdr.len - *offp;
+ int icmp6len = m->m_pkthdr.len - off;
int code, sum, noff;
char src[INET6_ADDRSTRLEN], dst[INET6_ADDRSTRLEN];