if min is greater than max, prefer max over min... I managed to get a

retransmit timer that was going to take 19 days to trigger...

Reviewed by:	silby
This commit is contained in:
John-Mark Gurney 2006-09-25 07:22:39 +00:00
parent 33fabe46da
commit 4dc630cdd2

View File

@ -133,7 +133,7 @@ static const char *tcptimers[] =
(tv) = (value) + tcp_rexmit_slop; \
if ((u_long)(tv) < (u_long)(tvmin)) \
(tv) = (tvmin); \
else if ((u_long)(tv) > (u_long)(tvmax)) \
if ((u_long)(tv) > (u_long)(tvmax)) \
(tv) = (tvmax); \
} while(0)