summaryrefslogtreecommitdiffstats
path: root/communication.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2009-11-04 21:39:26 +0000
committerBart De Schuymer <bdschuym@pandora.be>2009-11-04 21:39:26 +0000
commit97783d2a065eacac8fdbadb7b58c76e9acdfe4ee (patch)
treed04229abb0c26423f6517dd53f0d9952bd4dbf19 /communication.c
parent147ebcd98ce97e014d5a2631f8eef695626f7428 (diff)
fix unwanted zeroing of counters in the last udc (reported by Jon Lewis)
Diffstat (limited to 'communication.c')
-rw-r--r--communication.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/communication.c b/communication.c
index b4a1739..02ea1eb 100644
--- a/communication.c
+++ b/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;
}