]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_limit: Clone packet limits' cost value
authorPhil Sutter <phil@nwl.cc>
Tue, 24 May 2022 12:50:01 +0000 (14:50 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 26 May 2022 20:50:34 +0000 (22:50 +0200)
commit60975557401d0ab5052ff94d63616175ea161b89
treed2259d892bbaf292aded1dd5cd800f27a5301683
parent0a774b57f81ba3f9c2dd969587b9ba1919a60b0a
netfilter: nft_limit: Clone packet limits' cost value

When cloning a packet-based limit expression, copy the cost value as
well. Otherwise the new limit is not functional anymore.

Fixes: 062d62c00def9 ("netfilter: nft_limit: move stateful fields out of expression data")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_limit.c