[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

aCaB acab at clamav.net
Sun Apr 4 01:03:33 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 2236c938fec23431ed13350aa9236261643e1a92
Author: aCaB <acab at clamav.net>
Date:   Tue Sep 1 19:55:44 2009 +0200

    fix cli_scandesc to cli_fmap_scandesc wrappage

diff --git a/libclamav/matcher.c b/libclamav/matcher.c
index 05c6fa9..221e129 100644
--- a/libclamav/matcher.c
+++ b/libclamav/matcher.c
@@ -305,9 +305,9 @@ int cli_scandesc(int desc, cli_ctx *ctx, cli_file_t ftype, uint8_t ftonly, struc
     int ret = CL_EMEM;
     struct F_MAP *map = *ctx->fmap;
 
-    if(!(*ctx->fmap = fmap(desc, 0, 0))) {
+    if((*ctx->fmap = fmap(desc, 0, 0))) {
 	ret = cli_fmap_scandesc(ctx, ftype, ftonly, ftoffset, acmode);
-	fmunmap(map);
+	fmunmap(*ctx->fmap);
     }
     *ctx->fmap = map;
     return ret;

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list