diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-09-22 02:35:36 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-09-22 02:35:36 -0400 |
commit | bcac0dfab191cb53b3f9b43c8014a34070ed58ff (patch) | |
tree | 051a3a2a4d46098e69e81275329fc0833ebf3f6c /net/netfilter | |
parent | 5b92b61f3891517d18d0573ad2c939c81b59ecfe (diff) |
netfilter: ctnetlink: missing validation of CTA_EXPECT_ZONE attribute
This patch adds the missing validation of the CTA_EXPECT_ZONE
attribute in the ctnetlink code.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nf_conntrack_netlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c index 5bae1cd15ee..37533a30413 100644 --- a/net/netfilter/nf_conntrack_netlink.c +++ b/net/netfilter/nf_conntrack_netlink.c | |||
@@ -1733,6 +1733,7 @@ static const struct nla_policy exp_nla_policy[CTA_EXPECT_MAX+1] = { | |||
1733 | [CTA_EXPECT_TIMEOUT] = { .type = NLA_U32 }, | 1733 | [CTA_EXPECT_TIMEOUT] = { .type = NLA_U32 }, |
1734 | [CTA_EXPECT_ID] = { .type = NLA_U32 }, | 1734 | [CTA_EXPECT_ID] = { .type = NLA_U32 }, |
1735 | [CTA_EXPECT_HELP_NAME] = { .type = NLA_NUL_STRING }, | 1735 | [CTA_EXPECT_HELP_NAME] = { .type = NLA_NUL_STRING }, |
1736 | [CTA_EXPECT_ZONE] = { .type = NLA_U16 }, | ||
1736 | }; | 1737 | }; |
1737 | 1738 | ||
1738 | static int | 1739 | static int |