mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
bb#4669
This commit is contained in:
parent
2456a2bff4
commit
ed98fae7ad
3 changed files with 18 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue