diff options
author | Samuel Jean <sj-netfilter@cookinglinux.org> | 2005-02-07 18:44:31 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2005-02-07 18:44:31 +0000 |
commit | 77cb03f05f5cc43de409c978712ba17843cbad8d (patch) | |
tree | cad32b578d8af29c8842399338883cdec2f10c61 /extensions | |
parent | e6ebb1cf6ddf49cff467131f42a15fa40aaade0b (diff) |
Fix rule deletion (hinfo pointer initialized by kernel, don't compare it in userspace). (Samuel Jean)
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/libipt_hashlimit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/libipt_hashlimit.c b/extensions/libipt_hashlimit.c index 3ed8c586..1df36b4c 100644 --- a/extensions/libipt_hashlimit.c +++ b/extensions/libipt_hashlimit.c @@ -355,8 +355,7 @@ static struct iptables_match hashlimit = { NULL, .name = "hashlimit", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_hashlimit_info)), - .userspacesize = IPT_ALIGN(sizeof(struct ipt_hashlimit_info)), - //offsetof(struct ipt_hashlimit_info, prev), + .userspacesize = offsetof(struct ipt_hashlimit_info, hinfo), .help = &help, .init = &init, .parse = &parse, |