diff options
author | Cedric Berger <cedric@cvs.openbsd.org> | 2002-12-30 13:34:56 +0000 |
---|---|---|
committer | Cedric Berger <cedric@cvs.openbsd.org> | 2002-12-30 13:34:56 +0000 |
commit | 56b1c8d81a37bbcd66a7fb60a6362bde88f1e5d0 (patch) | |
tree | 11caa9c805402b9d12d6d3e481569b0e74e01608 /sys/net/pf_table.c | |
parent | 2aa5044807914503571ae0720e0a6fe66eaa1ec9 (diff) |
really count the number of deleted tables - obvious fix.
Diffstat (limited to 'sys/net/pf_table.c')
-rw-r--r-- | sys/net/pf_table.c | 6 |
1 files changed, 4 insertions, 2 deletions
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) |