|
@@ -464,8 +464,7 @@ cleanup_match(struct ipt_entry_match *m, unsigned int *i)
|
|
|
return 1;
|
|
|
|
|
|
if (m->u.kernel.match->destroy)
|
|
|
- m->u.kernel.match->destroy(m->u.kernel.match, m->data,
|
|
|
- m->u.match_size - sizeof(*m));
|
|
|
+ m->u.kernel.match->destroy(m->u.kernel.match, m->data);
|
|
|
module_put(m->u.kernel.match->me);
|
|
|
return 0;
|
|
|
}
|
|
@@ -518,7 +517,6 @@ check_match(struct ipt_entry_match *m,
|
|
|
|
|
|
if (m->u.kernel.match->checkentry
|
|
|
&& !m->u.kernel.match->checkentry(name, ip, match, m->data,
|
|
|
- m->u.match_size - sizeof(*m),
|
|
|
hookmask)) {
|
|
|
duprintf("ip_tables: check failed for `%s'.\n",
|
|
|
m->u.kernel.match->name);
|
|
@@ -579,8 +577,6 @@ check_entry(struct ipt_entry *e, const char *name, unsigned int size,
|
|
|
}
|
|
|
} else if (t->u.kernel.target->checkentry
|
|
|
&& !t->u.kernel.target->checkentry(name, e, target, t->data,
|
|
|
- t->u.target_size
|
|
|
- - sizeof(*t),
|
|
|
e->comefrom)) {
|
|
|
duprintf("ip_tables: check failed for `%s'.\n",
|
|
|
t->u.kernel.target->name);
|
|
@@ -652,8 +648,7 @@ cleanup_entry(struct ipt_entry *e, unsigned int *i)
|
|
|
IPT_MATCH_ITERATE(e, cleanup_match, NULL);
|
|
|
t = ipt_get_target(e);
|
|
|
if (t->u.kernel.target->destroy)
|
|
|
- t->u.kernel.target->destroy(t->u.kernel.target, t->data,
|
|
|
- t->u.target_size - sizeof(*t));
|
|
|
+ t->u.kernel.target->destroy(t->u.kernel.target, t->data);
|
|
|
module_put(t->u.kernel.target->me);
|
|
|
return 0;
|
|
|
}
|
|
@@ -1599,7 +1594,6 @@ static inline int compat_copy_match_from_user(struct ipt_entry_match *m,
|
|
|
|
|
|
if (m->u.kernel.match->checkentry
|
|
|
&& !m->u.kernel.match->checkentry(name, ip, match, dm->data,
|
|
|
- dm->u.match_size - sizeof(*dm),
|
|
|
hookmask)) {
|
|
|
duprintf("ip_tables: check failed for `%s'.\n",
|
|
|
m->u.kernel.match->name);
|
|
@@ -1658,8 +1652,7 @@ static int compat_copy_entry_from_user(struct ipt_entry *e, void **dstptr,
|
|
|
goto out;
|
|
|
} else if (t->u.kernel.target->checkentry
|
|
|
&& !t->u.kernel.target->checkentry(name, de, target,
|
|
|
- t->data, t->u.target_size - sizeof(*t),
|
|
|
- de->comefrom)) {
|
|
|
+ t->data, de->comefrom)) {
|
|
|
duprintf("ip_tables: compat: check failed for `%s'.\n",
|
|
|
t->u.kernel.target->name);
|
|
|
goto out;
|
|
@@ -2182,7 +2175,6 @@ icmp_checkentry(const char *tablename,
|
|
|
const void *info,
|
|
|
const struct xt_match *match,
|
|
|
void *matchinfo,
|
|
|
- unsigned int matchsize,
|
|
|
unsigned int hook_mask)
|
|
|
{
|
|
|
const struct ipt_icmp *icmpinfo = matchinfo;
|