From 677ce7a9c66c728ce6e57235e4607f0de02b6907 Mon Sep 17 00:00:00 2001 From: dlg Date: Wed, 2 Jun 2021 00:27:03 +0000 Subject: [PATCH] don't init a pointer just to immediately set it again. this is in ip6_input_if just before ipv6_check returns the pointer we end up using. pointed out by bluhm@ --- sys/netinet6/ip6_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 861bc6f8f96..3e4cd189b54 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.235 2021/06/02 00:20:50 dlg Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.236 2021/06/02 00:27:03 dlg Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -266,7 +266,7 @@ bad: int ip6_input_if(struct mbuf **mp, int *offp, int nxt, int af, struct ifnet *ifp) { - struct mbuf *m = *mp; + struct mbuf *m; struct ip6_hdr *ip6; struct sockaddr_in6 sin6; struct rtentry *rt = NULL; -- 2.20.1