]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfilter: nft_quota: copy content when cloning expression
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Feb 2023 19:43:02 +0000 (20:43 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 1 Mar 2023 16:23:23 +0000 (17:23 +0100)
commitaabef97a35160461e9c576848ded737558d89055
treef1aa78fbf75b2c8f483009bacb963ba5a19ab3ce
parent860e874290fb3be08e966c9c8ffc510c5b0f2bd8
netfilter: nft_quota: copy content when cloning expression

If the ruleset contains consumed quota, restore them accordingly.
Otherwise, listing after restoration shows never used items.

Restore the user-defined quota and flags too.

Fixes: ed0a0c60f0e5 ("netfilter: nft_quota: move stateful fields out of expression data")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_quota.c