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)
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user