[NETFILTER] xt_helper match fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If the @helper variable is not used, what do we grab it for? Use it.

Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>

---
 net/netfilter/xt_helper.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6_nosov/net/netfilter/xt_helper.c
===================================================================
--- linux-2.6_nosov.orig/net/netfilter/xt_helper.c
+++ linux-2.6_nosov/net/netfilter/xt_helper.c
@@ -52,8 +52,8 @@ helper_mt(const struct sk_buff *skb, con
 	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;
 }
 

-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux