]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fix rule deletion (hinfo pointer initialized by kernel, don't compare it in userspace...
authorSamuel Jean <sj-netfilter@cookinglinux.org>
Mon, 7 Feb 2005 18:44:31 +0000 (18:44 +0000)
committerHarald Welte <laforge@gnumonks.org>
Mon, 7 Feb 2005 18:44:31 +0000 (18:44 +0000)
extensions/libipt_hashlimit.c

index 3ed8c5865ae62a56564ee5525be86e36eb0f3802..1df36b4cbc604352beb7f3e6b0323f01debed725 100644 (file)
@@ -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,