summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2006-11-10 20:33:25 +0000
committerBart De Schuymer <bdschuym@pandora.be>2006-11-10 20:33:25 +0000
commit3aa1626560d0250922f944cdef40032371cb935a (patch)
tree2fc71568bf46a1b1fbd9f01385c78e1ab27c2162
parent27fe5d8ddc54c63db50082bdde3cf536806effbc (diff)
bugfix, thanks to Lutz Jaenicke
-rw-r--r--userspace/ebtables2/ebtables.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c
index 520d9cf..20a3bad 100644
--- a/userspace/ebtables2/ebtables.c
+++ b/userspace/ebtables2/ebtables.c
@@ -1176,16 +1176,15 @@ check_extension:
/* Do the final_check(), for all entries.
* This is needed when adding a rule that has a chain target */
i = -1;
- while (1) {
+ while (++i != replace->num_chains) {
struct ebt_u_entry *e;
- i++;
entries = replace->chains[i];
if (!entries) {
if (i < NF_BR_NUMHOOKS)
continue;
else
- break;
+ ebt_print_bug("whoops\n");
}
e = entries->entries->next;
while (e != entries->entries) {