diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2009-11-04 21:39:26 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2009-11-04 21:39:26 +0000 |
commit | d6f8d262fcc71bbf5a7434004d1640bdaf785e46 (patch) | |
tree | fd8a067af0d5857b55bd0985fe05799d43748d10 /userspace/ebtables2/communication.c | |
parent | fe0a4d8e9c2387040be9f7dd35d21bb3c8ce93d7 (diff) |
fix unwanted zeroing of counters in the last udc (reported by Jon Lewis)
Diffstat (limited to 'userspace/ebtables2/communication.c')
-rw-r--r-- | userspace/ebtables2/communication.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/userspace/ebtables2/communication.c b/userspace/ebtables2/communication.c index b4a1739..02ea1eb 100644 --- a/userspace/ebtables2/communication.c +++ b/userspace/ebtables2/communication.c @@ -303,8 +303,9 @@ void ebt_deliver_counters(struct ebt_u_replace *u_repl) new = newcounters; while (cc != u_repl->cc) { if (!next || next == entries->entries) { - while (chainnr < u_repl->num_chains && (!(entries = u_repl->chains[chainnr++]) || - (next = entries->entries->next) == entries->entries)); + while (chainnr < u_repl->num_chains && (!(entries = u_repl->chains[chainnr]) || + (next = entries->entries->next) == entries->entries)) + chainnr++; if (chainnr == u_repl->num_chains) break; } |