diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-06 22:36:30 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-08 15:28:29 -0700 |
commit | c5216cc70fa769e5a51837f2cf07c4a0aa734fcf (patch) | |
tree | 5481322970570bb58f42b475a618ecd137921c4c | |
parent | f1c0a276ea1786213bda2313cd9034f3a23f2e77 (diff) | |
download | linux-3.10-c5216cc70fa769e5a51837f2cf07c4a0aa734fcf.tar.gz linux-3.10-c5216cc70fa769e5a51837f2cf07c4a0aa734fcf.tar.bz2 linux-3.10-c5216cc70fa769e5a51837f2cf07c4a0aa734fcf.zip |
tcp: Use cork flow info instead of rt->rt_dst in tcp_v4_get_peer()
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 374de3c98d5..2b655031b39 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -1773,7 +1773,8 @@ struct inet_peer *tcp_v4_get_peer(struct sock *sk, bool *release_it) struct inet_sock *inet = inet_sk(sk); struct inet_peer *peer; - if (!rt || rt->rt_dst != inet->inet_daddr) { + if (!rt || + inet->cork.fl.u.ip4.daddr != inet->inet_daddr) { peer = inet_getpeer_v4(inet->inet_daddr, 1); *release_it = true; } else { |