icmp: Fix regression in nexthop resolution during replies.
authorDavid S. Miller <davem@davemloft.net>
Fri, 22 Jul 2011 13:22:10 +0000 (06:22 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Aug 2011 01:31:37 +0000 (18:31 -0700)
commit0671b3017cad5944fb2b63b5285802eeabb2cdd5
tree48468bebc3b31e41a7b3128a8cb384deb8864d82
parentef81bb40bf15f350fe865f31fa42f1082772a576
icmp: Fix regression in nexthop resolution during replies.

[ Upstream commit 415b3334a21aa67806c52d1acf4e72e14f7f402f ]

icmp_route_lookup() uses the wrong flow parameters if the reverse
session route lookup isn't used.

So do not commit to the re-decoded flow until we actually make a
final decision to use a real route saved in 'rt2'.

Reported-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/icmp.c