diff options
author | Patrick McHardy <kaber@trash.net> | 2010-06-24 17:00:23 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-06-24 17:00:23 +0200 |
commit | 6a7696b5eeba301b76da12c77e9b0b5ce448bc6b (patch) | |
tree | a91d81b80fb45f47459e60038dbdccddc086f107 /ip6tables.c | |
parent | 4a498502c10e690798aa78eb92e3aed7ce79f4e0 (diff) | |
parent | 11c2dd54b69e06ae3f35dea130ecba3df3859243 (diff) |
Merge branch 'master' of git://dev.medozas.de/iptables
Diffstat (limited to 'ip6tables.c')
-rw-r--r-- | ip6tables.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ip6tables.c b/ip6tables.c index 4e73d34e..6c5d124c 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -456,10 +456,10 @@ parse_target(const char *targetname) xtables_error(PARAMETER_PROBLEM, "Invalid target name (too short)"); - if (strlen(targetname) > XT_FUNCTION_MAXNAMELEN - 1) + if (strlen(targetname) >= XT_EXTENSION_MAXNAMELEN) xtables_error(PARAMETER_PROBLEM, "Invalid target name `%s' (%u chars max)", - targetname, XT_FUNCTION_MAXNAMELEN - 1); + targetname, XT_EXTENSION_MAXNAMELEN - 1); for (ptr = targetname; *ptr; ptr++) if (isspace(*ptr)) @@ -1558,8 +1558,7 @@ int do_command6(int argc, char *argv[], char **table, struct ip6tc_handle **hand target->t = xtables_calloc(1, size); target->t->u.target_size = size; strcpy(target->t->u.user.name, jumpto); - xtables_set_revision(target->t->u.user.name, - target->revision); + target->t->u.user.revision = target->revision; if (target->init != NULL) target->init(target->t); opts = xtables_merge_options(opts, @@ -1611,7 +1610,7 @@ int do_command6(int argc, char *argv[], char **table, struct ip6tc_handle **hand m->m = xtables_calloc(1, size); m->m->u.match_size = size; strcpy(m->m->u.user.name, m->name); - xtables_set_revision(m->m->u.user.name, m->revision); + m->m->u.user.revision = m->revision; if (m->init != NULL) m->init(m->m); if (m != m->next) @@ -1759,8 +1758,7 @@ int do_command6(int argc, char *argv[], char **table, struct ip6tc_handle **hand m->m = xtables_calloc(1, size); m->m->u.match_size = size; strcpy(m->m->u.user.name, m->name); - xtables_set_revision(m->m->u.user.name, - m->revision); + m->m->u.user.revision = m->revision; if (m->init != NULL) m->init(m->m); |