summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/ebtables.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2002-06-23 18:54:34 +0000
committerBart De Schuymer <bdschuym@pandora.be>2002-06-23 18:54:34 +0000
commitaba3cd75962eef91dd42d8cad0e2aaea160c3a65 (patch)
treede2c5c0635e9fbf63b444e47b1dff3ddc11028db /userspace/ebtables2/ebtables.c
parent84c62162d31fb487711a0ab0fd8a8199eba96a30 (diff)
*** empty log message ***
Diffstat (limited to 'userspace/ebtables2/ebtables.c')
-rw-r--r--userspace/ebtables2/ebtables.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c
index 103d1db..d4c6a6b 100644
--- a/userspace/ebtables2/ebtables.c
+++ b/userspace/ebtables2/ebtables.c
@@ -653,7 +653,7 @@ enddst:
w_l = w_l->next;
}
- printf("-j ");
+ printf("-j %s ", hlp->t->u.name);
t = find_target(hlp->t->u.name);
if (!t)
print_bug("Target not found");
@@ -1969,6 +1969,8 @@ int main(int argc, char *argv[])
}
}
+ if ( !table && !(table = find_table(replace.name)) )
+ print_error("Bad table name");
// database stuff before ebtables stuff
if (replace.command == 'b')
allowdb(allowbc);