diff options
author | Jeffrey Hsu <hsu@FreeBSD.org> | 2004-12-11 08:58:15 +0000 |
---|---|---|
committer | Jeffrey Hsu <hsu@FreeBSD.org> | 2004-12-11 08:58:15 +0000 |
commit | de9bbd1231933ee3de8a0c8f9a5401711c2e3ab0 (patch) | |
tree | 6863ac5fd4db2f971b998cd275918d619ea4513c | |
parent | 078d489abe557191ab23ba17f92c7cd41ce8cc62 (diff) | |
download | src-de9bbd1231933ee3de8a0c8f9a5401711c2e3ab0.tar.gz src-de9bbd1231933ee3de8a0c8f9a5401711c2e3ab0.zip |
Merge rev 1.104 from current:
date: 2004/08/03 02:01:44; author: hsu; state: Exp; lines: +1 -1
Fix bug with tracking the previous element in a list.
Found by: edrt@citiz.net
Submitted by: pavlin@icir.org
Notes
Notes:
svn path=/stable/4/; revision=138676
-rw-r--r-- | sys/netinet/ip_mroute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index 9a19ba75a8e7..39f6d098b5b7 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -2347,7 +2347,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) && |