From: kn Date: Thu, 10 Nov 2022 16:00:17 +0000 (+0000) Subject: Use local variable for consistency X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a37edb638cc09ce00d6f444cdbea5994df128922;p=openbsd Use local variable for consistency OK claudio --- diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index e65eeb0c2ac..92034b6e8e7 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6.c,v 1.249 2022/11/07 10:45:39 kn Exp $ */ +/* $OpenBSD: nd6.c,v 1.250 2022/11/10 16:00:17 kn Exp $ */ /* $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $ */ /* @@ -1033,8 +1033,8 @@ nd6_ioctl(u_long cmd, caddr_t data, struct ifnet *ifp) * XXX: KAME specific hack for scoped addresses * XXXX: for other scopes than link-local? */ - if (IN6_IS_ADDR_LINKLOCAL(&nbi->addr) || - IN6_IS_ADDR_MC_LINKLOCAL(&nbi->addr)) { + if (IN6_IS_ADDR_LINKLOCAL(&nb_addr) || + IN6_IS_ADDR_MC_LINKLOCAL(&nb_addr)) { u_int16_t *idp = (u_int16_t *)&nb_addr.s6_addr[2]; if (*idp == 0)