svn commit: r272354 - head/sys/net

Gleb Smirnoff glebius at FreeBSD.org
Wed Oct 1 11:23:56 UTC 2014


Author: glebius
Date: Wed Oct  1 11:23:54 2014
New Revision: 272354
URL: https://svnweb.freebsd.org/changeset/base/272354

Log:
  Fix off by one in lagg_port_destroy().
  
  Reported by:	"Max N. Boyarov" <zotrix bsd.by>

Modified:
  head/sys/net/if_lagg.c

Modified: head/sys/net/if_lagg.c
==============================================================================
--- head/sys/net/if_lagg.c	Wed Oct  1 10:35:52 2014	(r272353)
+++ head/sys/net/if_lagg.c	Wed Oct  1 11:23:54 2014	(r272354)
@@ -884,7 +884,7 @@ lagg_port_destroy(struct lagg_port *lp, 
 
 	/* Update detached port counters */
 	pval = lp->port_counters.val;
-	for (i = 0; i <= IFCOUNTERS; i++, pval++) {
+	for (i = 0; i < IFCOUNTERS; i++, pval++) {
 		vdiff = ifp->if_get_counter(ifp, i) - *pval;
 		sc->detached_counters.val[i] += vdiff;
 	}


More information about the svn-src-head mailing list