diff options
author | Liping Zhang <liping.zhang@spreadtrum.com> | 2016-08-13 18:13:02 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-18 01:38:23 +0300 |
commit | aca300183ed4f723837f6619facff0890c46d313 (patch) | |
tree | 94d4faf433a58166d86885571504f636f7d67f95 /net/netfilter/xt_nfacct.c | |
parent | 2497b84625466dc57b8c3a40cd41a659fe04cca6 (diff) | |
download | linux-aca300183ed4f723837f6619facff0890c46d313.tar.xz |
netfilter: nfnetlink_acct: report overquota to the right netns
We should report the over quota message to the right net namespace
instead of the init netns.
Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_nfacct.c')
-rw-r--r-- | net/netfilter/xt_nfacct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_nfacct.c b/net/netfilter/xt_nfacct.c index 3048a7e3a90a..cf327593852a 100644 --- a/net/netfilter/xt_nfacct.c +++ b/net/netfilter/xt_nfacct.c @@ -26,7 +26,7 @@ static bool nfacct_mt(const struct sk_buff *skb, struct xt_action_param *par) nfnl_acct_update(skb, info->nfacct); - overquota = nfnl_acct_overquota(skb, info->nfacct); + overquota = nfnl_acct_overquota(par->net, skb, info->nfacct); return overquota == NFACCT_UNDERQUOTA ? false : true; } |