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)
|
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