projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c87158
)
netfilter: nf_tables: set flowtable priority and hooknum field
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Fri, 19 Jan 2018 11:59:03 +0000
(12:59 +0100)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Fri, 19 Jan 2018 13:11:52 +0000
(14:11 +0100)
Otherwise netlink dump sends uninitialized fields to userspace.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_tables_api.c
b/net/netfilter/nf_tables_api.c
index 1addc401ff7df29b9fe2ad78a2a33ca901edc183..f87314c6dcc45743e503ee4ef3b1eecf62dd9756 100644
(file)
--- a/
net/netfilter/nf_tables_api.c
+++ b/
net/netfilter/nf_tables_api.c
@@
-4946,6
+4946,8
@@
static int nf_tables_flowtable_parse_hook(const struct nft_ctx *ctx,
goto err1;
}
+ flowtable->hooknum = hooknum;
+ flowtable->priority = priority;
flowtable->ops = ops;
flowtable->ops_len = n;