[PATCH] xtables-addons: Missing reference operator in xt_ECHO.c (for Jan Engelhardt)

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

 



Jan,
when you prepared commit ab27472eb44b0690f74d542ddb9a972460eceb9a, you probably overlooked some piece of code, because my gcc objects:
"2.6.26.5-t4/net/netfilter/xtables-addons/xt_ECHO.c:90: warning: passing argument 1 of ‘xtnu_ip_route_me_harder’ from incompatible pointer type"

diff -Nupr old/extensions/xt_ECHO.c new/extensions/xt_ECHO.c
--- old/extensions/xt_ECHO.c	2008-09-19 19:04:37.000000000 +0200
+++ new/extensions/xt_ECHO.c	2008-09-19 19:05:00.000000000 +0200
@@ -87,7 +87,7 @@ static unsigned int echo_tg4(struct sk_b
 	dst_hold(oldskb->dst);
 	newskb->dst = oldskb->dst;
 
-	if (ip_route_me_harder(newskb, addr_type) < 0)
+	if (ip_route_me_harder(&newskb, addr_type) < 0)
 		goto free_nskb;
 
 	newip->ttl        = dst_metric(newskb->dst, RTAX_HOPLIMIT);
--



--
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