From: Thomas Jarosch Date: Thu, 29 May 2008 19:51:44 +0000 (+0000) Subject: ipt_ACCOUNT, iptables: (tomj) fix delete handling (#1379) X-Git-Tag: v1.13~2 X-Git-Url: http://developer.intra2net.com/git/?p=ipt_ACCOUNT;a=commitdiff_plain;h=e8bd93ade907fdf8020986ec3e990751280efb93;hp=f05fa82a4f1a16da8a8b942c230b417ea7a491c9 ipt_ACCOUNT, iptables: (tomj) fix delete handling (#1379) --- diff --git a/iptables/extensions/libipt_ACCOUNT.c b/iptables/extensions/libipt_ACCOUNT.c index 1fb9e93..aa619b3 100644 --- a/iptables/extensions/libipt_ACCOUNT.c +++ b/iptables/extensions/libipt_ACCOUNT.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -154,7 +155,7 @@ struct iptables_target account .name = "ACCOUNT", .version = IPTABLES_VERSION, .size = IPT_ALIGN(sizeof(struct ipt_acc_info)), - .userspacesize = IPT_ALIGN(sizeof(struct ipt_acc_info)), + .userspacesize = offsetof(struct ipt_acc_info, table_nr), .help = &help, .init = &init, .parse = &parse,