summaryrefslogtreecommitdiffstats
path: root/ip6tables.c
diff options
context:
space:
mode:
Diffstat (limited to 'ip6tables.c')
-rw-r--r--ip6tables.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ip6tables.c b/ip6tables.c
index 6c5d124c..15067da2 100644
--- a/ip6tables.c
+++ b/ip6tables.c
@@ -1838,10 +1838,10 @@ int do_command6(int argc, char *argv[], char **table, struct ip6tc_handle **hand
generic_opt_check(command, options);
- if (chain && strlen(chain) > IP6T_FUNCTION_MAXNAMELEN)
+ if (chain != NULL && strlen(chain) >= XT_EXTENSION_MAXNAMELEN)
xtables_error(PARAMETER_PROBLEM,
- "chain name `%s' too long (must be under %i chars)",
- chain, IP6T_FUNCTION_MAXNAMELEN);
+ "chain name `%s' too long (must be under %u chars)",
+ chain, XT_EXTENSION_MAXNAMELEN);
/* only allocate handle if we weren't called with a handle */
if (!*handle)