summaryrefslogtreecommitdiffstats
path: root/userspace
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2004-12-16 19:30:32 +0000
committerBart De Schuymer <bdschuym@pandora.be>2004-12-16 19:30:32 +0000
commitb4bb14dafbba481b9ef56631e3badb237ce03593 (patch)
treed402f5879e646105139212b116090b99831da06c /userspace
parent40be7b95976c9f62b4d5f576906d3259a64fb2c8 (diff)
Fix problem with udc
Diffstat (limited to 'userspace')
-rw-r--r--userspace/ebtables2/ebtables.c2
-rw-r--r--userspace/ebtables2/libebtc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c
index f4225de..8b0dd80 100644
--- a/userspace/ebtables2/ebtables.c
+++ b/userspace/ebtables2/ebtables.c
@@ -601,7 +601,7 @@ int main(int argc, char *argv[])
if ((replace.selected_chain =
ebt_get_chainnr(&replace, opt)) == -1)
ebt_print_error("Chain %s doesn't "
- "exist", optarg);
+ "exist", opt);
ebt_delete_chain(&replace);
break;
}
diff --git a/userspace/ebtables2/libebtc.c b/userspace/ebtables2/libebtc.c
index a4232fd..dfc277b 100644
--- a/userspace/ebtables2/libebtc.c
+++ b/userspace/ebtables2/libebtc.c
@@ -1067,7 +1067,7 @@ void ebt_delete_chain(struct ebt_u_replace *replace)
decrease_chain_jumps(replace);
ebt_flush_chains(replace);
remove_udc(replace);
- } while (chain_nr != -1);
+ } while (chain_nr == -1);
replace->selected_chain = chain_nr;
}