Fix off by one in lagg_port_destroy().

Reported by:	"Max N. Boyarov" <zotrix bsd.by>
This commit is contained in:
glebius 2014-10-01 11:23:54 +00:00
parent d588d5723d
commit 57bac09d3f

View File

@ -884,7 +884,7 @@ lagg_port_destroy(struct lagg_port *lp, int rundelport)
/* 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;
}