diff options
author | Liping Zhang <liping.zhang@spreadtrum.com> | 2016-10-12 09:10:45 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-10-17 11:43:53 -0400 |
commit | 5751e175c60be1b4113d1e9bfa011b58ec01f104 (patch) | |
tree | 28d1e2644fac91984b2f77076e6b4dc4aa47cd85 /net | |
parent | f434ed0a00b232efc9843c869d05048c7cd79bb7 (diff) |
netfilter: nft_hash: add missing NFTA_HASH_OFFSET's nla_policy
Missing the nla_policy description will also miss the validation check
in kernel.
Fixes: 70ca767ea1b2 ("netfilter: nft_hash: Add hash offset value")
Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nft_hash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nft_hash.c b/net/netfilter/nft_hash.c index 09473b415b95..baf694de3935 100644 --- a/net/netfilter/nft_hash.c +++ b/net/netfilter/nft_hash.c | |||
@@ -44,6 +44,7 @@ static const struct nla_policy nft_hash_policy[NFTA_HASH_MAX + 1] = { | |||
44 | [NFTA_HASH_LEN] = { .type = NLA_U32 }, | 44 | [NFTA_HASH_LEN] = { .type = NLA_U32 }, |
45 | [NFTA_HASH_MODULUS] = { .type = NLA_U32 }, | 45 | [NFTA_HASH_MODULUS] = { .type = NLA_U32 }, |
46 | [NFTA_HASH_SEED] = { .type = NLA_U32 }, | 46 | [NFTA_HASH_SEED] = { .type = NLA_U32 }, |
47 | [NFTA_HASH_OFFSET] = { .type = NLA_U32 }, | ||
47 | }; | 48 | }; |
48 | 49 | ||
49 | static int nft_hash_init(const struct nft_ctx *ctx, | 50 | static int nft_hash_init(const struct nft_ctx *ctx, |