mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
lockd: initialize sin6_scope_id in lockd_inet6addr_event()
I noticed this was missing when I was testing with link local addresses. Signed-off-by: Scott Mayhew <smayhew@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
7b19824de6
commit
c01410f7f6
1 changed files with 2 additions and 0 deletions
|
@ -322,6 +322,8 @@ static int lockd_inet6addr_event(struct notifier_block *this,
|
||||||
dprintk("lockd_inet6addr_event: removed %pI6\n", &ifa->addr);
|
dprintk("lockd_inet6addr_event: removed %pI6\n", &ifa->addr);
|
||||||
sin6.sin6_family = AF_INET6;
|
sin6.sin6_family = AF_INET6;
|
||||||
sin6.sin6_addr = ifa->addr;
|
sin6.sin6_addr = ifa->addr;
|
||||||
|
if (ipv6_addr_type(&sin6.sin6_addr) & IPV6_ADDR_LINKLOCAL)
|
||||||
|
sin6.sin6_scope_id = ifa->idev->dev->ifindex;
|
||||||
svc_age_temp_xprts_now(nlmsvc_rqst->rq_server,
|
svc_age_temp_xprts_now(nlmsvc_rqst->rq_server,
|
||||||
(struct sockaddr *)&sin6);
|
(struct sockaddr *)&sin6);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue