diff options
author | mohans <mohans@FreeBSD.org> | 2006-08-11 21:15:23 +0000 |
---|---|---|
committer | mohans <mohans@FreeBSD.org> | 2006-08-11 21:15:23 +0000 |
commit | 707c86ce464655cc21368747d6d2380c3a45d907 (patch) | |
tree | 79bc8d154909be166e8a4c6f574e46e753772107 /sys/netinet/tcp_timewait.c | |
parent | ce9f8963fd6c7fcb782d8b9eebf51fb108d847f8 (diff) | |
download | FreeBSD-src-707c86ce464655cc21368747d6d2380c3a45d907.zip FreeBSD-src-707c86ce464655cc21368747d6d2380c3a45d907.tar.gz |
Fixes an edge case bug in timewait handling where ticks rolling over causing
the timewait expiry to be exactly 0 corrupts the timewait queues (and that entry).
Reviewed by: silby
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
-rw-r--r-- | sys/netinet/tcp_timewait.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 2a95f7c..fe8e4b5 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -1763,7 +1763,7 @@ tcp_twstart(struct tcpcb *tp) tcp_twrespond(tw, TH_ACK); inp->inp_ppcb = tw; inp->inp_vflag |= INP_TIMEWAIT; - tcp_timer_2msl_reset(tw, tw_time); + tcp_timer_2msl_reset(tw, tw_time, 0); /* * If the inpcb owns the sole reference to the socket, then we can |