mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Fix bug with tracking the previous element in a list.
Found by: edrt@citiz.net Submitted by: pavlin@icir.org
This commit is contained in:
parent
4fd54632b0
commit
2ff39e1543
1 changed files with 1 additions and 1 deletions
|
|
@ -2483,7 +2483,7 @@ del_bw_upcall(struct bw_upcall *req)
|
|||
|
||||
/* Find the bw_meter entry to delete */
|
||||
for (prev = NULL, x = mfc->mfc_bw_meter; x != NULL;
|
||||
x = x->bm_mfc_next) {
|
||||
prev = x, x = x->bm_mfc_next) {
|
||||
if ((BW_TIMEVALCMP(&x->bm_threshold.b_time,
|
||||
&req->bu_threshold.b_time, ==)) &&
|
||||
(x->bm_threshold.b_packets == req->bu_threshold.b_packets) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue