diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2006-11-10 20:33:25 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2006-11-10 20:33:25 +0000 |
commit | 92306860bfc6c187cebeb0a527e94750d61ec3d0 (patch) | |
tree | 1bf9de2908a7c9075d2a6e654efc1291d33dc3d3 | |
parent | 241150663e549b8cd57fb349054f98387b7e9eb9 (diff) |
bugfix, thanks to Lutz Jaenicke
-rw-r--r-- | ebtables.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) { |