Browse code

properly report archive unpacking errors

git-svn: trunk@1880

Tomasz Kojm authored on 2006/03/29 22:55:31
Showing 2 changed files
... ...
@@ -1,3 +1,9 @@
1
+Wed Mar 29 15:45:03 CEST 2006 (tk)
2
+----------------------------------
3
+  * libclamav/scanners.c: properly report archive unpacking errors
4
+			  Problem spotted by David F. Skoll
5
+			  <dfs*roaringpenguin.com>
6
+
1 7
 Sun Mar 26 22:33:42 CEST 2006 (tk)
2 8
 ----------------------------------
3 9
   * clamd/session.c: remove static timeout (5s) for SESSION
... ...
@@ -1770,7 +1770,7 @@ int cli_magic_scandesc(int desc, cli_ctx *ctx)
1770 1770
     type == CL_TYPE_MAIL ? ctx->mrec-- : ctx->arec--;
1771 1771
 
1772 1772
     if(type != CL_TYPE_DATA && ret != CL_VIRUS && !ctx->engine->sdb) {
1773
-	if((ret = cli_scanraw(desc, ctx, type) == CL_VIRUS))
1773
+	if(cli_scanraw(desc, ctx, type) == CL_VIRUS)
1774 1774
 	    return CL_VIRUS;
1775 1775
     }
1776 1776