From bc5cfb1f639c3009657e1b6a6a44330690f0f93b Mon Sep 17 00:00:00 2001 From: kn Date: Sat, 10 Dec 2022 22:40:58 +0000 Subject: [PATCH] Reuse off variable from previous line; no object change --- sys/netinet6/icmp6.c | 4 ++-- 1 file 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]; -- 2.20.1