OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4608fdf
)
netfilter: nfnetlink_hook: strip off module name from hookfn
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Mon, 2 Aug 2021 22:15:53 +0000
(
00:15
+0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Fri, 6 Aug 2021 15:07:40 +0000
(17:07 +0200)
NFNLA_HOOK_FUNCTION_NAME should include the hook function name only,
the module name is already provided by NFNLA_HOOK_MODULE_NAME.
Fixes:
e2cf17d3774c
("netfilter: add new hook nfnl subsystem")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_hook.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nfnetlink_hook.c
b/net/netfilter/nfnetlink_hook.c
index
202f57d
..
ca453c6
100644
(file)
--- a/
net/netfilter/nfnetlink_hook.c
+++ b/
net/netfilter/nfnetlink_hook.c
@@
-135,6
+135,7
@@
static int nfnl_hook_dump_one(struct sk_buff *nlskb,
if (module_name) {
char *end;
+ *module_name = '\0';
module_name += 2;
end = strchr(module_name, ']');
if (end) {