Fix ScanMapCB success return value

This commit is contained in:
ndrpnt 2022-04-20 16:13:14 +02:00 committed by GitHub
parent 690024f64a
commit 69c0d2a4e1
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)
// clean
if ret == CL_SUCCESS {
return 0, "", nil
return uint(scanned), "", nil
}
// virus
if ret == CL_VIRUS {