diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2011-12-15 19:39:00 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2011-12-15 19:39:00 +0000 |
commit | 87c6079f0c21ccb36684674e11cfe592ddf859fb (patch) | |
tree | 9b8ae297b28d4c2dc303ca8d4ba59e7ad5f4420c /userspace/ebtables2 | |
parent | 6964586ea3d692611d678c7d6f23b060f79a146f (diff) |
bugfix: setting rule in first built-in chain caused setting all counters to zero (thanks to James Sinclair)
Diffstat (limited to 'userspace/ebtables2')
-rw-r--r-- | userspace/ebtables2/communication.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/userspace/ebtables2/communication.c b/userspace/ebtables2/communication.c index f19bda4..62ed667 100644 --- a/userspace/ebtables2/communication.c +++ b/userspace/ebtables2/communication.c @@ -295,7 +295,7 @@ void ebt_deliver_counters(struct ebt_u_replace *u_repl) struct ebt_cntchanges *cc = u_repl->cc->next, *cc2; struct ebt_u_entries *entries = NULL; struct ebt_u_entry *next = NULL; - int i, chainnr = 0; + int i, chainnr = -1; if (u_repl->nentries == 0) return; |