summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-12-10 22:16:09 +0100
committerDavid S. Miller <davem@davemloft.net>2010-12-10 22:16:09 +0100
commit457de4383ec6144df7d5a82cdfb110c825305a51 (patch)
tree386f0cd0c960765284362d59499a225dae21530e /net/ipv6
parentbridge: Fix return values of br_multicast_add_group/br_multicast_new_group (diff)
downloadlinux-457de4383ec6144df7d5a82cdfb110c825305a51.tar.xz
linux-457de4383ec6144df7d5a82cdfb110c825305a51.zip
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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/tcp_ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 319458558df9..fee076891646 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -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;