diff options
Diffstat (limited to 'net/ipv4/syncookies.c')
-rw-r--r-- | net/ipv4/syncookies.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index 4b87a4f11f465..e923d2f021aa8 100644 --- a/net/ipv4/syncookies.c +++ b/net/ipv4/syncookies.c @@ -179,10 +179,9 @@ static inline struct sock *get_cookie_sock(struct sock *sk, struct sk_buff *skb, struct sock *child; child = tp->af_specific->syn_recv_sock(sk, skb, req, dst); - if (child) { - sk_set_owner(child, sk->sk_owner); + if (child) tcp_acceptq_queue(sk, req, child); - } else + else tcp_openreq_free(req); return child; |