[DCCP]: Initialize icsk_rto in dccp_v4_init_sock
authorArnaldo Carvalho de Melo <acme@mandriva.com>
Wed, 10 Aug 2005 03:31:11 +0000 (20:31 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 29 Aug 2005 22:55:43 +0000 (15:55 -0700)
Fixes nasty bug related to the retransmit timer (yeah, DCCP does
retransmits) firing too early.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ipv4.c

index 4fa56dbcbea4438e559d30d8a2312594d3eb5e3c..6bccf4dd1e70d39b454761746c647707565edcbf 100644 (file)
@@ -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;