From 4d8070a25b5c7585b416e8a3db16fc15f2e3cd13 Mon Sep 17 00:00:00 2001 From: gnn Date: Wed, 8 Feb 2006 07:16:46 +0000 Subject: [PATCH] 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 --- sys/netinet6/in6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index d8d83b7d4b50..c775aec35fb2 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -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;