diff options
author | David S. Miller <davem@davemloft.net> | 2011-12-05 13:21:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-05 13:21:42 -0500 |
commit | de398fb8b92eba3447298053a483727bdd5fe37e (patch) | |
tree | 2b13b1a58a9cdbdbea44bc4095bf8a2893a38ee5 /net/dccp | |
parent | f61759e6b831a55b89e584b198c3da325e2bc379 (diff) | |
download | linux-de398fb8b92eba3447298053a483727bdd5fe37e.tar.bz2 |
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>
Diffstat (limited to 'net/dccp')
0 files changed, 0 insertions, 0 deletions