From 2ff39e1543499092693ebb5ab34cfa0cd91ed214 Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Tue, 3 Aug 2004 02:01:44 +0000 Subject: [PATCH] Fix bug with tracking the previous element in a list. Found by: edrt@citiz.net Submitted by: pavlin@icir.org --- sys/netinet/ip_mroute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index 5aab2ffde09..11490c45c27 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) &&