David S. Miller de398fb8b9 ipv4: Fix peer validation on cached lookup.
If ipv4_valdiate_peer() fails during a cached entry lookup,
we'll NULL derer since the loop iterator assumes rth is not
NULL.

Letting this be handled as a failure is just bogus, so just make it
not fail.  If we have trouble getting a non-NULL neighbour for the
redirected gateway, just restore the original gateway and continue.

The very next use of this cached route will try again.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-12-05 13:21:42 -05:00
..
2011-11-12 18:13:32 -05:00
2011-10-13 16:05:07 -04:00
2011-10-19 03:10:46 -04:00
2011-10-19 03:10:46 -04:00
2011-11-18 14:38:59 -05:00
2011-10-24 17:36:08 -04:00
2011-10-24 17:36:08 -04:00
2011-12-01 14:12:55 -05:00