Skip to content

Commit

Permalink
ipv6: Fix 'release_it' logic in tcp_v6_get_peer()
Browse files Browse the repository at this point in the history
We accidently set it to "true" for the case where we
are using a route bound peer.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Dec 10, 2010
1 parent 4c0833b commit 457de43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/tcp_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -1877,7 +1877,7 @@ static struct inet_peer *tcp_v6_get_peer(struct sock *sk, bool *release_it)
if (!rt->rt6i_peer)
rt6_bind_peer(rt, 1);
peer = rt->rt6i_peer;
*release_it = true;
*release_it = false;
}

return peer;
Expand Down

0 comments on commit 457de43

Please sign in to comment.