From e8bd93ade907fdf8020986ec3e990751280efb93 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Thu, 29 May 2008 19:51:44 +0000 Subject: [PATCH] ipt_ACCOUNT, iptables: (tomj) fix delete handling (#1379) --- iptables/extensions/libipt_ACCOUNT.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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, -- 1.7.1