summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_mroute.c
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>2004-08-03 02:01:44 +0000
committerhsu <hsu@FreeBSD.org>2004-08-03 02:01:44 +0000
commit4b4df6655a6958a27b64cae8ba605a069de6592f (patch)
tree0941486f8c2732d7d7ffc63cef3ce69dbae6be10 /sys/netinet/ip_mroute.c
parent6121fa3e4d7f2486414ebcf8d80a58b5050322ab (diff)
downloadFreeBSD-src-4b4df6655a6958a27b64cae8ba605a069de6592f.zip
FreeBSD-src-4b4df6655a6958a27b64cae8ba605a069de6592f.tar.gz
Fix bug with tracking the previous element in a list.
Found by: edrt@citiz.net Submitted by: pavlin@icir.org
Diffstat (limited to 'sys/netinet/ip_mroute.c')
-rw-r--r--sys/netinet/ip_mroute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c
index 5aab2ff..11490c4 100644
--- a/sys/netinet/ip_mroute.c
+++ b/sys/netinet/ip_mroute.c
@@ -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) &&
OpenPOWER on IntegriCloud