Skip to content

Commit

Permalink
netfilter: xt_TPROXY: fix invflags check in tproxy_tg6_check()
Browse files Browse the repository at this point in the history
We have to check for IP6T_INV_PROTO in invflags, instead of flags.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Balazs Scheidler <bazsi@balabit.hu>
  • Loading branch information
Pablo Neira Ayuso committed Mar 20, 2015
1 parent 4017a7e commit 3d8c6dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/netfilter/xt_TPROXY.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ static int tproxy_tg6_check(const struct xt_tgchk_param *par)
{
const struct ip6t_ip6 *i = par->entryinfo;

if ((i->proto == IPPROTO_TCP || i->proto == IPPROTO_UDP)
&& !(i->flags & IP6T_INV_PROTO))
if ((i->proto == IPPROTO_TCP || i->proto == IPPROTO_UDP) &&
!(i->invflags & IP6T_INV_PROTO))
return 0;

pr_info("Can be used only in combination with "
Expand Down

0 comments on commit 3d8c6dc

Please sign in to comment.