diff --git a/clamav.go b/clamav.go index 98d440d..6360df2 100644 --- a/clamav.go +++ b/clamav.go @@ -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 {