summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2011-12-04 09:16:57 +0000
committerBart De Schuymer <bdschuym@pandora.be>2011-12-04 09:16:57 +0000
commitba2879d0a64e24ce053827b292ab797a97ffef6d (patch)
tree9b3bf6d836f1f85718f545525e939e57fc5fdd02 /userspace/ebtables2
parent9f88cc812c342b3116ead011a1c439c4b93f8828 (diff)
fix rule counter bug (reported by James Sinclair): possible wrong initialization of counters
Diffstat (limited to 'userspace/ebtables2')
-rw-r--r--userspace/ebtables2/communication.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/userspace/ebtables2/communication.c b/userspace/ebtables2/communication.c
index 0917f6e..f19bda4 100644
--- a/userspace/ebtables2/communication.c
+++ b/userspace/ebtables2/communication.c
@@ -309,6 +309,7 @@ void ebt_deliver_counters(struct ebt_u_replace *u_repl)
new = newcounters;
while (cc != u_repl->cc) {
if (!next || next == entries->entries) {
+ chainnr++;
while (chainnr < u_repl->num_chains && (!(entries = u_repl->chains[chainnr]) ||
(next = entries->entries->next) == entries->entries))
chainnr++;