netfilter: nf_tables: missing attribute validation in nf_tables_delflowtable()
Return -EINVAL is mandatory attributes are missing. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
32fc718751
commit
e603ea4ba7
|
@ -5161,6 +5161,11 @@ static int nf_tables_delflowtable(struct net *net, struct sock *nlsk,
|
|||
struct nft_table *table;
|
||||
struct nft_ctx ctx;
|
||||
|
||||
if (!nla[NFTA_FLOWTABLE_TABLE] ||
|
||||
(!nla[NFTA_FLOWTABLE_NAME] &&
|
||||
!nla[NFTA_FLOWTABLE_HANDLE]))
|
||||
return -EINVAL;
|
||||
|
||||
table = nf_tables_table_lookup(net, nla[NFTA_FLOWTABLE_TABLE],
|
||||
family, genmask);
|
||||
if (IS_ERR(table))
|
||||
|
|
Loading…
Reference in a new issue