vac: error handling bug in vacfileblockscore (David Swasey)
This commit is contained in:
parent
b5a2d4dae7
commit
52e34db194
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue