vac: error handling bug in vacfileblockscore (David Swasey)

This commit is contained in:
Russ Cox 2008-12-06 14:45:57 -08:00
parent b5a2d4dae7
commit 52e34db194

View file

@ -598,11 +598,12 @@ vacfileblockscore(VacFile *f, u32int bn, u8int *score)
dsize = s->dsize;
size = vtfilegetsize(s);
if((uvlong)bn*dsize >= size)
goto out;
goto out1;
ret = vtfileblockscore(f->source, bn, score);
out:
out1:
vtfileunlock(f->source);
out:
filerunlock(f);
return ret;
}