Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Fix copy&paste problem found by James Juran
details: https://anonhg.NetBSD.org/src/rev/fce63e6e49cc
branches: trunk
changeset: 588107:fce63e6e49cc
user: rpaulo <rpaulo%NetBSD.org@localhost>
date: Wed Feb 08 13:35:48 2006 +0000
description:
Fix copy&paste problem found by James Juran
<James.Juran%baesystems.com@localhost> in freebsd-net mailing list.
bzero'ing the wrong var with a wrong sizeof is clearly not ok..
diffstat:
sys/netinet6/in6.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0ef2244718e1 -r fce63e6e49cc sys/netinet6/in6.c
--- a/sys/netinet6/in6.c Wed Feb 08 09:04:01 2006 +0000
+++ b/sys/netinet6/in6.c Wed Feb 08 13:35:48 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6.c,v 1.95 2006/01/21 00:15:36 rpaulo Exp $ */
+/* $NetBSD: in6.c,v 1.96 2006/02/08 13:35:48 rpaulo Exp $ */
/* $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.95 2006/01/21 00:15:36 rpaulo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.96 2006/02/08 13:35:48 rpaulo Exp $");
#include "opt_inet.h"
#include "opt_pfil_hooks.h"
@@ -558,7 +558,7 @@
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;
Home |
Main Index |
Thread Index |
Old Index