mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
netfilter: nft_ct: reject direction for ct id
[ Upstream commit38ed1c7062] Direction attribute is ignored, reject it in case this ever needs to be supported Fixes:3087c3f7c2("netfilter: nft_ct: Add ct id support") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b4b257155a
commit
fc46e23da7
@@ -476,6 +476,9 @@ static int nft_ct_get_init(const struct nft_ctx *ctx,
|
||||
break;
|
||||
#endif
|
||||
case NFT_CT_ID:
|
||||
if (tb[NFTA_CT_DIRECTION])
|
||||
return -EINVAL;
|
||||
|
||||
len = sizeof(u32);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user