summaryrefslogtreecommitdiffstats
path: root/iptables-restore.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-06-24 17:00:23 +0200
committerPatrick McHardy <kaber@trash.net>2010-06-24 17:00:23 +0200
commit6a7696b5eeba301b76da12c77e9b0b5ce448bc6b (patch)
treea91d81b80fb45f47459e60038dbdccddc086f107 /iptables-restore.c
parent4a498502c10e690798aa78eb92e3aed7ce79f4e0 (diff)
parent11c2dd54b69e06ae3f35dea130ecba3df3859243 (diff)
Merge branch 'master' of git://dev.medozas.de/iptables
Diffstat (limited to 'iptables-restore.c')
-rw-r--r--iptables-restore.c4
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)) {