mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Fix off by one in lagg_port_destroy().
Reported by: "Max N. Boyarov" <zotrix bsd.by>
This commit is contained in:
parent
6d4766c1b8
commit
dee826cec0
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue