commit 52e34db194b46210035a263d96e19da107a5281a from: Russ Cox date: Sat Dec 06 22:45:57 2008 UTC vac: error handling bug in vacfileblockscore (David Swasey) commit - b5a2d4dae76817f8e206d32302206a8a7ababc46 commit + 52e34db194b46210035a263d96e19da107a5281a blob - d7ad2056f95b9b784c16d54e57c377df435ff261 blob + 598dae092b6b3b7a5bfc422cb30be97750952401 --- src/cmd/vac/file.c +++ src/cmd/vac/file.c @@ -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; }