aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJim Rees <rees@FreeBSD.org>2004-07-15 22:21:25 +0000
committerJim Rees <rees@FreeBSD.org>2004-07-15 22:21:25 +0000
commitaf341d82c4edc830c9c1b0f91a16c3934d2fd08d (patch)
treed14bb940e724bb74b51f98c4f748b9080e355865 /sys
parent672c05d49c9565187ba43fd37c632fd5960c04b5 (diff)
downloadsrc-af341d82c4edc830c9c1b0f91a16c3934d2fd08d.tar.gz
src-af341d82c4edc830c9c1b0f91a16c3934d2fd08d.zip
fix array index out of bounds in rpc->rc_srtt[], rpc->rc_sdrtt[]
Noticed by: tedu Approved by: alfred
Notes
Notes: svn path=/head/; revision=132227
Diffstat (limited to 'sys')
-rw-r--r--sys/rpc/rpcclnt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/rpc/rpcclnt.c b/sys/rpc/rpcclnt.c
index bb8768a604f5..18c11b1fb6cc 100644
--- a/sys/rpc/rpcclnt.c
+++ b/sys/rpc/rpcclnt.c
@@ -559,10 +559,10 @@ rpcclnt_connect(rpc, td)
so->so_snd.sb_flags |= SB_NOINTR;
/* Initialize other non-zero congestion variables */
- rpc->rc_srtt[0] = rpc->rc_srtt[1] = rpc->rc_srtt[2] = rpc->rc_srtt[3] =
- rpc->rc_srtt[4] = (RPC_TIMEO << 3);
+ rpc->rc_srtt[0] = rpc->rc_srtt[1] = rpc->rc_srtt[2] =
+ rpc->rc_srtt[3] = (RPC_TIMEO << 3);
rpc->rc_sdrtt[0] = rpc->rc_sdrtt[1] = rpc->rc_sdrtt[2] =
- rpc->rc_sdrtt[3] = rpc->rc_sdrtt[4] = 0;
+ rpc->rc_sdrtt[3] = 0;
rpc->rc_cwnd = RPC_MAXCWND / 2; /* Initial send window */
rpc->rc_sent = 0;
rpc->rc_timeouts = 0;