History

netfilter: nft_lookup: add missing attribute validation for NFTA_LOOKUP_SET_ID

Patrick McHardy committed 11 years ago

Commit 4c1017a1 parent 5191f4d1 file · +1 −0Browse files

Unified · Split

net/netfilter/nft_lookup.c+1−0
@@ -39,6 +39,7 @@ static void nft_lookup_eval(const struct nft_expr *expr, · 38 unmodified lines
39 39
40static const struct nla_policy nft_lookup_policy[NFTA_LOOKUP_MAX + 1] = {40static 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};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t