Commit 38ed1c70 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nft_ct: reject direction for ct id

Direction attribute is ignored, reject it in case this ever needs to be
supported

Fixes: 3087c3f7 ("netfilter: nft_ct: Add ct id support")
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent fa173a1b
...@@ -476,6 +476,9 @@ static int nft_ct_get_init(const struct nft_ctx *ctx, ...@@ -476,6 +476,9 @@ static int nft_ct_get_init(const struct nft_ctx *ctx,
break; break;
#endif #endif
case NFT_CT_ID: case NFT_CT_ID:
if (tb[NFTA_CT_DIRECTION])
return -EINVAL;
len = sizeof(u32); len = sizeof(u32);
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment