diff options
Diffstat (limited to 'iptables/xtables-eb.c')
-rw-r--r-- | iptables/xtables-eb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index cfa9317c..5bb34d6d 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -914,10 +914,10 @@ print_zero: xtables_error(PARAMETER_PROBLEM, "The -t option (seen in line %u) cannot be used in %s.\n", line, xt_params->program_name); - if (strlen(optarg) > EBT_TABLE_MAXNAMELEN - 1) - xtables_error(PARAMETER_PROBLEM, - "Table name length cannot exceed %d characters", - EBT_TABLE_MAXNAMELEN - 1); + if (!nft_table_builtin_find(h, optarg)) + xtables_error(VERSION_PROBLEM, + "table '%s' does not exist", + optarg); *table = optarg; table_set = true; break; |