Skip to content

Commit

Permalink
[DCCP]: Initialize icsk_rto in dccp_v4_init_sock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Aug 29, 2005
1 parent 27258ee commit 0b4e03b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/dccp/ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b4e03b

Please sign in to comment.