From: Samuel Jean Date: Mon, 7 Feb 2005 18:44:31 +0000 (+0000) Subject: Fix rule deletion (hinfo pointer initialized by kernel, don't compare it in userspace... X-Git-Tag: v1.3.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77cb03f05f5cc43de409c978712ba17843cbad8d;p=thirdparty%2Fiptables.git Fix rule deletion (hinfo pointer initialized by kernel, don't compare it in userspace). (Samuel Jean) --- 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,