diff options
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 6565cf55eb1e..93825dd3a7c0 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1288,7 +1288,8 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb, | |||
1288 | #endif | 1288 | #endif |
1289 | 1289 | ||
1290 | if (__inet_inherit_port(sk, newsk) < 0) { | 1290 | if (__inet_inherit_port(sk, newsk) < 0) { |
1291 | sock_put(newsk); | 1291 | inet_csk_prepare_forced_close(newsk); |
1292 | tcp_done(newsk); | ||
1292 | goto out; | 1293 | goto out; |
1293 | } | 1294 | } |
1294 | __inet6_hash(newsk, NULL); | 1295 | __inet6_hash(newsk, NULL); |