projects
/
platform
/
upstream
/
ebtables.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
229079b
)
bugfix
author
Bart De Schuymer
<bdschuym@pandora.be>
Sat, 18 Jun 2005 14:42:44 +0000
(14:42 +0000)
committer
Bart De Schuymer
<bdschuym@pandora.be>
Sat, 18 Jun 2005 14:42:44 +0000
(14:42 +0000)
communication.c
patch
|
blob
|
history
diff --git
a/communication.c
b/communication.c
index
6db6858
..
bfe9110
100644
(file)
--- a/
communication.c
+++ b/
communication.c
@@
-350,7
+350,9
@@
void ebt_deliver_counters(struct ebt_u_replace *u_repl, int exec_style)
new = newcounters;
while (cc) {
if (!next) {
- while (!(entries = ebt_nr_to_chain(u_repl, chainnr++)));
+ while (!(entries = ebt_nr_to_chain(u_repl, chainnr++)))
+ if (chainnr > NF_BR_NUMHOOKS)
+ goto letscontinue;/* Prevent infinite loop for -D x:-1 */
if (!(next = entries->entries))
continue;
}
@@
-397,6
+399,7
@@
void ebt_deliver_counters(struct ebt_u_replace *u_repl, int exec_style)
}
cc = cc->next;
}
+letscontinue:
free(u_repl->counters);
u_repl->counters = newcounters;