projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c702bf
)
netfilter: nft_tunnel: ERSPAN_VERSION must not be null
author
Florian Westphal
<fw@strlen.de>
Thu, 16 Jan 2020 07:58:05 +0000
(08:58 +0100)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 16 Jan 2020 13:22:32 +0000
(14:22 +0100)
Fixes:
af308b94a2a4a5
("netfilter: nf_tables: add tunnel support")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_tunnel.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nft_tunnel.c
b/net/netfilter/nft_tunnel.c
index
d89c7c5
..
5284fcf
100644
(file)
--- a/
net/netfilter/nft_tunnel.c
+++ b/
net/netfilter/nft_tunnel.c
@@
-266,6
+266,9
@@
static int nft_tunnel_obj_erspan_init(const struct nlattr *attr,
if (err < 0)
return err;
+ if (!tb[NFTA_TUNNEL_KEY_ERSPAN_VERSION])
+ return -EINVAL;
+
version = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY_ERSPAN_VERSION]));
switch (version) {
case ERSPAN_VERSION: