提交 4351bef0 编写于 作者: T Taehee Yoo 提交者: Pablo Neira Ayuso

netfilter: x_tables: remove duplicate ip6t_get_target function call

In the check_target, ip6t_get_target is called twice.
Signed-off-by: NTaehee Yoo <ap420073@gmail.com>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 cd9a5a15
...@@ -528,7 +528,6 @@ static int check_target(struct ip6t_entry *e, struct net *net, const char *name) ...@@ -528,7 +528,6 @@ static int check_target(struct ip6t_entry *e, struct net *net, const char *name)
.family = NFPROTO_IPV6, .family = NFPROTO_IPV6,
}; };
t = ip6t_get_target(e);
return xt_check_target(&par, t->u.target_size - sizeof(*t), return xt_check_target(&par, t->u.target_size - sizeof(*t),
e->ipv6.proto, e->ipv6.proto,
e->ipv6.invflags & IP6T_INV_PROTO); e->ipv6.invflags & IP6T_INV_PROTO);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册