diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-12-30 01:30:31 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-12-30 01:30:31 +0000 |
commit | 9f53a93f5d4d9688fe746317a7ab27a992e0da86 (patch) | |
tree | 65f0deb7f77b1f64b8b6d2dd499834cbd37fb8b5 /sys/netinet/tcp_input.c | |
parent | e16de73a7cd4c9e47581927c489efec2b9123aae (diff) |
handle rtt < 0; markus ok
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index d6be2781d50..3196378d11c 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.179 2004/12/29 17:17:28 markus Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.180 2004/12/30 01:30:30 deraadt Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -2796,6 +2796,9 @@ tcp_xmit_timer(tp, rtt) short delta; short rttmin; + if (rtt < 0) + return; + tcpstat.tcps_rttupdated++; --rtt; if (tp->t_srtt != 0) { |