Skip to content

Commit bcac0df

Browse files
ummakyneskaber
authored andcommitted
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>
1 parent 5b92b61 commit bcac0df

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/netfilter/nf_conntrack_netlink.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,6 +1733,7 @@ static const struct nla_policy exp_nla_policy[CTA_EXPECT_MAX+1] = {
17331733
[CTA_EXPECT_TIMEOUT] = { .type = NLA_U32 },
17341734
[CTA_EXPECT_ID] = { .type = NLA_U32 },
17351735
[CTA_EXPECT_HELP_NAME] = { .type = NLA_NUL_STRING },
1736+
[CTA_EXPECT_ZONE] = { .type = NLA_U16 },
17361737
};
17371738

17381739
static int

0 commit comments

Comments
 (0)