Commit 457de438 authored by David S. Miller's avatar David S. Miller

ipv6: Fix 'release_it' logic in tcp_v6_get_peer()

We accidently set it to "true" for the case where we
are using a route bound peer.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4c0833bc
...@@ -1877,7 +1877,7 @@ static struct inet_peer *tcp_v6_get_peer(struct sock *sk, bool *release_it) ...@@ -1877,7 +1877,7 @@ static struct inet_peer *tcp_v6_get_peer(struct sock *sk, bool *release_it)
if (!rt->rt6i_peer) if (!rt->rt6i_peer)
rt6_bind_peer(rt, 1); rt6_bind_peer(rt, 1);
peer = rt->rt6i_peer; peer = rt->rt6i_peer;
*release_it = true; *release_it = false;
} }
return peer; return peer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment