Commit 5d836764 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

tcp: do not clear urg_data in tcp_create_openreq_child

All listeners have this field cleared already, since tcp_disconnect()
clears it and newly created sockets have also a zero value here.

So a clone will inherit a zero value here.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3a9a57f6
...@@ -501,8 +501,6 @@ struct sock *tcp_create_openreq_child(const struct sock *sk, ...@@ -501,8 +501,6 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,
newtp->rx_opt.dsack = 0; newtp->rx_opt.dsack = 0;
newtp->rx_opt.num_sacks = 0; newtp->rx_opt.num_sacks = 0;
newtp->urg_data = 0;
if (sock_flag(newsk, SOCK_KEEPOPEN)) if (sock_flag(newsk, SOCK_KEEPOPEN))
inet_csk_reset_keepalive_timer(newsk, inet_csk_reset_keepalive_timer(newsk,
keepalive_time_when(newtp)); keepalive_time_when(newtp));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment