diff options
author | Patrick McHardy <kaber@trash.net> | 2015-01-30 02:46:33 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-01-30 13:08:20 -0500 |
commit | 4c1017aa80c95a74703139bb95c4ce0d130efe4d (patch) | |
tree | ec02ef4b39c95117db7b07572c985238785b81f8 | |
parent | 5191f4d82daf22b7ee9446f83527d2795e225974 (diff) |
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>
-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, | |||
39 | 39 | ||
40 | static const struct nla_policy nft_lookup_policy[NFTA_LOOKUP_MAX + 1] = { | 40 | static const struct nla_policy nft_lookup_policy[NFTA_LOOKUP_MAX + 1] = { |
41 | [NFTA_LOOKUP_SET] = { .type = NLA_STRING }, | 41 | [NFTA_LOOKUP_SET] = { .type = NLA_STRING }, |
42 | [NFTA_LOOKUP_SET_ID] = { .type = NLA_U32 }, | ||
42 | [NFTA_LOOKUP_SREG] = { .type = NLA_U32 }, | 43 | [NFTA_LOOKUP_SREG] = { .type = NLA_U32 }, |
43 | [NFTA_LOOKUP_DREG] = { .type = NLA_U32 }, | 44 | [NFTA_LOOKUP_DREG] = { .type = NLA_U32 }, |
44 | }; | 45 | }; |