projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd9a5a1
)
netfilter: x_tables: remove duplicate ip6t_get_target function call
author
Taehee Yoo
<ap420073@gmail.com>
Sun, 8 Apr 2018 15:01:24 +0000
(
00:01
+0900)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Tue, 24 Apr 2018 08:29:17 +0000
(10:29 +0200)
In the check_target, ip6t_get_target is called twice.
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter/ip6_tables.c
patch
|
blob
|
history
diff --git
a/net/ipv6/netfilter/ip6_tables.c
b/net/ipv6/netfilter/ip6_tables.c
index
65c9e1a
..
7097bbf
100644
(file)
--- a/
net/ipv6/netfilter/ip6_tables.c
+++ b/
net/ipv6/netfilter/ip6_tables.c
@@
-528,7
+528,6
@@
static int check_target(struct ip6t_entry *e, struct net *net, const char *name)
.family = NFPROTO_IPV6,
};
- t = ip6t_get_target(e);
return xt_check_target(&par, t->u.target_size - sizeof(*t),
e->ipv6.proto,
e->ipv6.invflags & IP6T_INV_PROTO);