diff options
author | Patrick McHardy <kaber@trash.net> | 2010-07-15 18:15:03 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-07-15 18:15:03 +0200 |
commit | b14f160c11196aeb99000611207bd353c7ae2cb9 (patch) | |
tree | 250e1e5386a24e41f2d1cf83089876549c9135d2 /iptables-restore.c | |
parent | 0bcda81f5f6d121084131fb944e2940f614cc98c (diff) | |
parent | b4fa7222923bc10476b8753f358e871f461eb2db (diff) |
Merge branch 'master' into iptables-next
Diffstat (limited to 'iptables-restore.c')
-rw-r--r-- | iptables-restore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables-restore.c b/iptables-restore.c index 4a74485c..8c6648e9 100644 --- a/iptables-restore.c +++ b/iptables-restore.c @@ -259,11 +259,11 @@ main(int argc, char *argv[]) exit(1); } - if (strlen(chain) > XT_FUNCTION_MAXNAMELEN - 1) + if (strlen(chain) >= XT_EXTENSION_MAXNAMELEN) xtables_error(PARAMETER_PROBLEM, "Invalid chain name `%s' " "(%u chars max)", - chain, XT_FUNCTION_MAXNAMELEN - 1); + chain, XT_EXTENSION_MAXNAMELEN - 1); if (iptc_builtin(chain, handle) <= 0) { if (noflush && iptc_is_chain(chain, handle)) { |