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

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -501,8 +501,6 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,
	newtp->rx_opt.dsack = 0;
	newtp->rx_opt.num_sacks = 0;

	newtp->urg_data = 0;

	if (sock_flag(newsk, SOCK_KEEPOPEN))
		inet_csk_reset_keepalive_timer(newsk,
					       keepalive_time_when(newtp));