Skip to content

Commit 38ed1c7

Browse files
committed
netfilter: nft_ct: reject direction for ct id
Direction attribute is ignored, reject it in case this ever needs to be supported Fixes: 3087c3f ("netfilter: nft_ct: Add ct id support") Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent fa173a1 commit 38ed1c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/netfilter/nft_ct.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ static int nft_ct_get_init(const struct nft_ctx *ctx,
476476
break;
477477
#endif
478478
case NFT_CT_ID:
479+
if (tb[NFTA_CT_DIRECTION])
480+
return -EINVAL;
481+
479482
len = sizeof(u32);
480483
break;
481484
default:

0 commit comments

Comments
 (0)