diff options
Diffstat (limited to '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 374de3c98d5e..2b655031b392 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) | |||
1773 | struct inet_sock *inet = inet_sk(sk); | 1773 | struct inet_sock *inet = inet_sk(sk); |
1774 | struct inet_peer *peer; | 1774 | struct inet_peer *peer; |
1775 | 1775 | ||
1776 | if (!rt || rt->rt_dst != inet->inet_daddr) { | 1776 | if (!rt || |
1777 | inet->cork.fl.u.ip4.daddr != inet->inet_daddr) { | ||
1777 | peer = inet_getpeer_v4(inet->inet_daddr, 1); | 1778 | peer = inet_getpeer_v4(inet->inet_daddr, 1); |
1778 | *release_it = true; | 1779 | *release_it = true; |
1779 | } else { | 1780 | } else { |