diff options
author | Patrick McHardy <kaber@trash.net> | 2015-01-30 07:46:33 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-01-30 19:08:20 +0100 |
commit | 4c1017aa80c95a74703139bb95c4ce0d130efe4d (patch) | |
tree | ec02ef4b39c95117db7b07572c985238785b81f8 /net | |
parent | 5191f4d82daf22b7ee9446f83527d2795e225974 (diff) | |
download | linux-4c1017aa80c95a74703139bb95c4ce0d130efe4d.tar.gz linux-4c1017aa80c95a74703139bb95c4ce0d130efe4d.tar.bz2 linux-4c1017aa80c95a74703139bb95c4ce0d130efe4d.zip |
netfilter: nft_lookup: add missing attribute validation for NFTA_LOOKUP_SET_ID
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nft_lookup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nft_lookup.c b/net/netfilter/nft_lookup.c index 6404a726d17b..9615b8b9fb37 100644 --- a/net/netfilter/nft_lookup.c +++ b/net/netfilter/nft_lookup.c @@ -39,6 +39,7 @@ static void nft_lookup_eval(const struct nft_expr *expr, static const struct nla_policy nft_lookup_policy[NFTA_LOOKUP_MAX + 1] = { [NFTA_LOOKUP_SET] = { .type = NLA_STRING }, + [NFTA_LOOKUP_SET_ID] = { .type = NLA_U32 }, [NFTA_LOOKUP_SREG] = { .type = NLA_U32 }, [NFTA_LOOKUP_DREG] = { .type = NLA_U32 }, }; |