summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2000-07-11 19:18:18 +0000
committerNiels Provos <provos@cvs.openbsd.org>2000-07-11 19:18:18 +0000
commit18ff66dcbdc8f765158b5df9d76491e057c31c45 (patch)
tree4d4e827baa33e5bcecb7b4b8e9314e51512303c8 /sys/netinet/tcp_subr.c
parent646b32ada3a7cc59793f09541a1d4f4c5c05ea0f (diff)
forgot to reset rscale
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index a2cf3848285..1f2d21aa8d2 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_subr.c,v 1.29 2000/07/11 16:53:22 provos Exp $ */
+/* $OpenBSD: tcp_subr.c,v 1.30 2000/07/11 19:18:17 provos Exp $ */
/* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */
/*
@@ -669,6 +669,7 @@ tcp_drain()
void
tcp_rscale(struct tcpcb *tp, u_long hiwat)
{
+ tp->request_r_scale = 0;
while (tp->request_r_scale < TCP_MAX_WINSHIFT &&
TCP_MAXWIN << tp->request_r_scale < hiwat)
tp->request_r_scale++;