From 4b4df6655a6958a27b64cae8ba605a069de6592f Mon Sep 17 00:00:00 2001 From: hsu Date: Tue, 3 Aug 2004 02:01:44 +0000 Subject: 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(-) (limited to 'sys/netinet/ip_mroute.c') 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) && -- cgit v1.1