Skip to content

Commit

Permalink
[NETFILTER]: xt_helper: Do not bypass RCU
Browse files Browse the repository at this point in the history
Use the @helper variable that was just obtained.

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jan Engelhardt authored and David S. Miller committed Jan 11, 2008
1 parent 8f41f01 commit 0ff4d77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/netfilter/xt_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ match(const struct sk_buff *skb,
if (info->name[0] == '\0')
ret = !ret;
else
ret ^= !strncmp(master_help->helper->name, info->name,
strlen(master_help->helper->name));
ret ^= !strncmp(helper->name, info->name,
strlen(helper->name));
return ret;
}

Expand Down

0 comments on commit 0ff4d77

Please sign in to comment.