Merge pull request #1 from ndrpnt/fix-scanmap

Fix ScanMapCB success return value
This commit is contained in:
ca110us 2022-04-22 15:06:47 +08:00 committed by GitHub
commit 817805f598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ func (c *Clamav) ScanMapCB(fmap *Fmap, fileName string, context interface{}) (ui
defer CloseMemory(fmap) defer CloseMemory(fmap)
// clean // clean
if ret == CL_SUCCESS { if ret == CL_SUCCESS {
return 0, "", nil return uint(scanned), "", nil
} }
// virus // virus
if ret == CL_VIRUS { if ret == CL_VIRUS {