From 69c0d2a4e1f75a2a653072d3139fd90ae0da5ba1 Mon Sep 17 00:00:00 2001 From: ndrpnt <22328659+ndrpnt@users.noreply.github.com> Date: Wed, 20 Apr 2022 16:13:14 +0200 Subject: [PATCH] Fix ScanMapCB success return value --- clamav.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {