This commit is contained in:
aCaB 2012-05-08 15:34:27 +02:00
parent 2456a2bff4
commit ed98fae7ad
3 changed files with 18 additions and 6 deletions

View file

@ -706,7 +706,7 @@ int cache_check(unsigned char *hash, cli_ctx *ctx) {
const void *buf;
size_t readme = todo < FILEBUFF ? todo : FILEBUFF;
if(!(buf = fmap_need_off_once(map, at, readme)))
return CL_VIRUS;
return CL_EREAD;
todo -= readme;
at += readme;
cli_md5_update(&md5, buf, readme);