From 3e5e0e277c18813fd477fb0ea6dfaca22b25e88a Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Mon, 7 Feb 2005 18:44:31 +0000 Subject: Fix rule deletion (hinfo pointer initialized by kernel, don't compare it in userspace). (Samuel Jean) --- extensions/libipt_hashlimit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'extensions/libipt_hashlimit.c') diff --git a/extensions/libipt_hashlimit.c b/extensions/libipt_hashlimit.c index 3ed8c58..1df36b4 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, -- cgit v1.2.3