ChangeSet 1.2009.16.5, 2005/03/14 21:27:07-08:00, [EMAIL PROTECTED]
[IPV6]: Reload skb->dst after xfrm6_route_forward()
While replacing dst_pmtu in ip6_output I found this little gem. In
ip6_forward we're not reloading the dst pointer after calling
xfrm6_route_forward. So all subsequent dereferences of dst will
refer to its pre-IPsec value.
The solution is of course to refresh its value.
Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
ip6_output.c | 1 +
1 files changed, 1 insertion(+)
diff -Nru a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
--- a/net/ipv6/ip6_output.c 2005-03-15 00:08:09 -08:00
+++ b/net/ipv6/ip6_output.c 2005-03-15 00:08:09 -08:00
@@ -397,6 +397,7 @@
IP6_INC_STATS(IPSTATS_MIB_INDISCARDS);
goto drop;
}
+ dst = skb->dst;
/* IPv6 specs say nothing about it, but it is clear that we cannot
send redirects to source routed frames.
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html