X-Git-Url: http://developer.intra2net.com/git/?p=ipt_ACCOUNT;a=blobdiff_plain;f=iptables%2Fextensions%2Flibipt_ACCOUNT.c;h=aa619b332ea6150d6b6f6f96c94a90359fde16b5;hp=1fb9e932d194af8cd37dcdc758b0880b2bc6fdd0;hb=e8bd93ade907fdf8020986ec3e990751280efb93;hpb=f05fa82a4f1a16da8a8b942c230b417ea7a491c9 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,