Fix for an inappropriate bzero of the ICMPv6 stats. The code was zero'ing the wrong structure member but setting the correct one.
Submitted by: James dot Juran at baesystems dot com Reviewed by: gnn MFC after: 1 week
This commit is contained in:
parent
b14cd9989e
commit
4d8070a25b
@ -568,7 +568,7 @@ in6_control(so, cmd, data, ifp, td)
|
||||
case SIOCGIFSTAT_ICMP6:
|
||||
if (ifp == NULL)
|
||||
return EINVAL;
|
||||
bzero(&ifr->ifr_ifru.ifru_stat,
|
||||
bzero(&ifr->ifr_ifru.ifru_icmp6stat,
|
||||
sizeof(ifr->ifr_ifru.ifru_icmp6stat));
|
||||
ifr->ifr_ifru.ifru_icmp6stat =
|
||||
*((struct in6_ifextra *)ifp->if_afdata[AF_INET6])->icmp6_ifstat;
|
||||
|
Loading…
Reference in New Issue
Block a user