Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4351bef0 authored by Taehee Yoo's avatar Taehee Yoo Committed by Pablo Neira Ayuso
Browse files

netfilter: x_tables: remove duplicate ip6t_get_target function call



In the check_target, ip6t_get_target is called twice.

Signed-off-by: default avatarTaehee Yoo <ap420073@gmail.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent cd9a5a15
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);