From: Arnaldo Carvalho de Melo Date: Wed, 10 Aug 2005 03:31:11 +0000 (-0700) Subject: [DCCP]: Initialize icsk_rto in dccp_v4_init_sock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0b4e03bf0bc43ad6250a1e2fa25fc3eb2b028977;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [DCCP]: Initialize icsk_rto in dccp_v4_init_sock Fixes nasty bug related to the retransmit timer (yeah, DCCP does retransmits) firing too early. Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index 4fa56dbcbea4..6bccf4dd1e70 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c @@ -1219,6 +1219,7 @@ static int dccp_v4_init_sock(struct sock *sk) dccp_ctl_socket_init = 0; dccp_init_xmit_timers(sk); + inet_csk(sk)->icsk_rto = DCCP_TIMEOUT_INIT; sk->sk_state = DCCP_CLOSED; dp->dccps_mss_cache = 536; dp->dccps_role = DCCP_ROLE_UNDEFINED;