diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2011-12-04 09:16:57 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2011-12-04 09:16:57 +0000 |
commit | 5457c22553e17e918512b6261d29825181b28ddb (patch) | |
tree | e095325053e6693c6fda5540fbf64e948b560bd5 | |
parent | f9ca781de870908286e61271a7227d39924d8063 (diff) | |
download | ebtables-5457c22553e17e918512b6261d29825181b28ddb.tar.gz ebtables-5457c22553e17e918512b6261d29825181b28ddb.tar.bz2 ebtables-5457c22553e17e918512b6261d29825181b28ddb.zip |
fix rule counter bug (reported by James Sinclair): possible wrong initialization of counters
-rw-r--r-- | communication.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/communication.c b/communication.c index 0917f6e..f19bda4 100644 --- a/communication.c +++ b/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++; |