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)
commit558254b0b602b8605d7246a10cfeb584b1fcabfc
treed2259d892bbaf292aded1dd5cd800f27a5301683
parent520778042ccca019f3ffa136dd0ca565c486cedd
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: 3b9e2ea6c11bf ("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