Fixed a bug in the timeout range constraint macro that can cause a timeout
to break free of the constraint if the range minimum boundary is larger than the maximum boundary. Discovered by jmg@FreeBSD.org. (See FreeBSD's tcp_timer.h rev 1.31).
This commit is contained in:
parent
07a877c8d1
commit
b91b1cdbb2
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tcp_timer.h,v 1.23 2005/12/10 23:36:23 elad Exp $ */
|
||||
/* $NetBSD: tcp_timer.h,v 1.24 2006/09/26 06:39:22 jeremy Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2005 The NetBSD Foundation, Inc.
|
||||
@ -173,7 +173,7 @@ const char *tcptimers[] =
|
||||
(tv) = (value); \
|
||||
if ((tv) < (tvmin)) \
|
||||
(tv) = (tvmin); \
|
||||
else if ((tv) > (tvmax)) \
|
||||
if ((tv) > (tvmax)) \
|
||||
(tv) = (tvmax); \
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user