diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-19 02:42:43 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-19 02:42:43 +0400 |
commit | a48eff128865aa20520fa6e0e0c5fbd2ac50d712 (patch) | |
tree | c60e376c3fca23bb215c977e42661187076dccbf /net/ipv4/tcp_ipv4.c | |
parent | ed2361e66eec60645f8e4715fe39a42235ef43ae (diff) | |
download | linux-a48eff128865aa20520fa6e0e0c5fbd2ac50d712.tar.xz |
ipv4: Pass explicit destination address to rt_bind_peer().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 1d290acdcb27..3c8d9b6f1ea4 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -1781,7 +1781,7 @@ struct inet_peer *tcp_v4_get_peer(struct sock *sk, bool *release_it) *release_it = true; } else { if (!rt->peer) - rt_bind_peer(rt, 1); + rt_bind_peer(rt, inet->inet_daddr, 1); peer = rt->peer; *release_it = false; } |