diff options
author | rees <rees@FreeBSD.org> | 2004-07-15 22:21:25 +0000 |
---|---|---|
committer | rees <rees@FreeBSD.org> | 2004-07-15 22:21:25 +0000 |
commit | f24213beb7fc2f5c6b8ef6f5dbf14a6d29bc4269 (patch) | |
tree | d14bb940e724bb74b51f98c4f748b9080e355865 /sys/rpc | |
parent | f00200d8a459bcf01e832c89518247e88ce28bf0 (diff) | |
download | FreeBSD-src-f24213beb7fc2f5c6b8ef6f5dbf14a6d29bc4269.zip FreeBSD-src-f24213beb7fc2f5c6b8ef6f5dbf14a6d29bc4269.tar.gz |
fix array index out of bounds in rpc->rc_srtt[], rpc->rc_sdrtt[]
Noticed by: tedu
Approved by: alfred
Diffstat (limited to 'sys/rpc')
-rw-r--r-- | sys/rpc/rpcclnt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/rpc/rpcclnt.c b/sys/rpc/rpcclnt.c index bb8768a..18c11b1 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; |