]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - net/ipv4/tcp_ipv4.c
tcp: Fix a connect() race with timewait sockets
[mirror_ubuntu-zesty-kernel.git] / net / ipv4 / tcp_ipv4.c
index 29002ab26e0d3debe3b3945a770756a25c0c7e2b..15e96030ce47d16fdd1095807d7b8283a02d1215 100644 (file)
@@ -1464,7 +1464,7 @@ struct sock *tcp_v4_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
        }
 #endif
 
-       __inet_hash_nolisten(newsk);
+       __inet_hash_nolisten(newsk, NULL);
        __inet_inherit_port(sk, newsk);
 
        return newsk;