From 56b1c8d81a37bbcd66a7fb60a6362bde88f1e5d0 Mon Sep 17 00:00:00 2001 From: Cedric Berger Date: Mon, 30 Dec 2002 13:34:56 +0000 Subject: really count the number of deleted tables - obvious fix. --- sys/net/pf_table.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/net') diff --git a/sys/net/pf_table.c b/sys/net/pf_table.c index e0b417ec8ab..2736219497d 100644 --- a/sys/net/pf_table.c +++ b/sys/net/pf_table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_table.c,v 1.2 2002/12/30 02:37:27 henning Exp $ */ +/* $OpenBSD: pf_table.c,v 1.3 2002/12/30 13:34:55 cedric Exp $ */ /* * Copyright (c) 2002 Cedric Berger @@ -881,8 +881,10 @@ pfr_clr_tables(int *ndel, int flags) ACCEPT_FLAGS(PFR_FLAG_ATOMIC+PFR_FLAG_DUMMY); SLIST_INIT(&workq); - RB_FOREACH(p, pfr_ktablehead, &pfr_ktables) + RB_FOREACH(p, pfr_ktablehead, &pfr_ktables) { SLIST_INSERT_HEAD(&workq, p, pfrkt_workq); + xdel++; + } if (!(flags & PFR_FLAG_DUMMY)) { if (flags & PFR_FLAG_ATOMIC) -- cgit v1.2.3