Просмотр исходного кода

netfilter: x_tables: remove duplicate ip6t_get_target function call

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>
Taehee Yoo 7 лет назад
Родитель
Сommit
4351bef053
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      net/ipv6/netfilter/ip6_tables.c

+ 0 - 1
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);