Fix ScanMapCB success return value
This commit is contained in:
parent
690024f64a
commit
69c0d2a4e1
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user