From 72a00d12fbd5c207b847239f0496e7fb15a36ede Mon Sep 17 00:00:00 2001 From: nonaka Date: Thu, 12 Jul 2018 08:20:49 +0000 Subject: [PATCH] Use s6, not mysin. --- usr.sbin/ndp/ndp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index 81d71e8fe42b..31be55a70195 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -1,4 +1,4 @@ -/* $NetBSD: ndp.c,v 1.53 2018/07/12 08:16:14 nonaka Exp $ */ +/* $NetBSD: ndp.c,v 1.54 2018/07/12 08:20:49 nonaka Exp $ */ /* $KAME: ndp.c,v 1.121 2005/07/13 11:30:13 keiichi Exp $ */ /* @@ -494,8 +494,8 @@ delete(struct rt_msghdr *rtm, char *host) if (rtmsg(RTM_DELETE, rtm) == 0) { struct sockaddr_in6 s6 = *mysin; /* XXX: for safety */ - mysin->sin6_scope_id = 0; - inet6_putscopeid(mysin, INET6_IS_ADDR_LINKLOCAL); + s6.sin6_scope_id = 0; + inet6_putscopeid(&s6, INET6_IS_ADDR_LINKLOCAL); (void)getnameinfo((struct sockaddr *)(void *)&s6, (socklen_t)s6.sin6_len, delete_host_buf, sizeof(delete_host_buf), NULL, 0,