Fix off by one in lagg_port_destroy().
Reported by: "Max N. Boyarov" <zotrix bsd.by>
This commit is contained in:
parent
d588d5723d
commit
57bac09d3f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user