summaryrefslogtreecommitdiffstats
path: root/ebtables.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2002-08-24 21:01:21 +0000
committerBart De Schuymer <bdschuym@pandora.be>2002-08-24 21:01:21 +0000
commit62a7fdb81507a7c364c49db1361e6c7728764b17 (patch)
tree33f9a1c0184a916f521ad8f9a1a937299b3c7fac /ebtables.c
parenta53ce8effe08e708b440f5249803eb4aa29e2f96 (diff)
*** empty log message ***
Diffstat (limited to 'ebtables.c')
-rw-r--r--ebtables.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ebtables.c b/ebtables.c
index 54fd2b0..2ace08c 100644
--- a/ebtables.c
+++ b/ebtables.c
@@ -1462,6 +1462,10 @@ static void get_kernel_table(const char *modprobe)
print_error("The kernel doesn't support the ebtables "
"%s table", replace.name);
}
+ // when listing a table contained in a file, we don't expect the user
+ // to know what the table's name is
+ if ( !(table = find_table(replace.name)) )
+ print_error("Bad table name");
}
#define print_if_l_error print_error("Interface name length must be less " \