[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:00 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 401ea2432d131b056c37ea8f4afd2302d2856471
Author: aCaB <acab at clamav.net>
Date:   Mon Aug 31 07:15:04 2009 +0200

    cli_scanhtml_utf16: close before unlink

diff --git a/libclamav/scanners.c b/libclamav/scanners.c
index 89a9f19..10e8fba 100644
--- a/libclamav/scanners.c
+++ b/libclamav/scanners.c
@@ -1116,9 +1116,9 @@ static int cli_scanhtml_utf16(int desc, cli_ctx *ctx)
 	    if(write(fd, decoded, strlen(decoded)) == -1) {
 		cli_errmsg("cli_scanhtml_utf16: Can't write to file %s\n", tempname);
 		free(decoded);
+		close(fd);
 		cli_unlink(tempname);
 		free(tempname);
-		close(fd);
 		return CL_EWRITE;
 	    }
 	    free(decoded);

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list