summaryrefslogtreecommitdiff
path: root/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
commit25c741d4c7ce9435de17510b4727e665467e4f50 (patch)
tree332f521ed8224dc4e07ba2fe8e367ec6035e9866 /ebtables.c
parent57a40c73b4c9814d5ff82e09b61b40937b6f6dc6 (diff)
downloadebtables-25c741d4c7ce9435de17510b4727e665467e4f50.tar.gz
*** empty log message ***
Diffstat (limited to 'ebtables.c')
-rw-r--r--ebtables.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ebtables.c b/ebtables.c
index 103d1db..d4c6a6b 100644
--- a/ebtables.c
+++ b/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);