Fix off-by-one error in r260229.

Coverity CID:	1148955
This commit is contained in:
Alexander Motin 2014-01-07 11:43:51 +00:00
parent 2901576a0d
commit 45e18ea7ea

View File

@ -884,7 +884,7 @@ nfsrc_trimcache(u_int64_t sockref, uint32_t snd_una, int final)
for (i = 0; i < HISTSIZE; i++)
time_histo[i] = 0;
i = 0;
lastslot = NFSRVCACHE_HASHSIZE;
lastslot = NFSRVCACHE_HASHSIZE - 1;
} else {
force = 0;
if (NFSD_MONOSEC != tcp_lasttrim) {