Merge pull request #1 from ndrpnt/fix-scanmap
Fix ScanMapCB success return value
This commit is contained in:
commit
817805f598
@ -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