From 77cb03f05f5cc43de409c978712ba17843cbad8d Mon Sep 17 00:00:00 2001 From: Samuel Jean 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(-) 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, -- cgit v1.2.3