git-svn: trunk@3428
Tomasz Kojm authored on 2007/12/17 05:55:11... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sun Dec 16 21:15:17 CET 2007 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * libclamav/scanners.c: avoid double scanning of raw HTML files |
|
4 |
+ |
|
1 | 5 |
Sun Dec 16 19:09:36 CET 2007 (tk) |
2 | 6 |
--------------------------------- |
3 | 7 |
* libclamav/pe.c: support whitelisting of individual .mdb sigs |
... | ... |
@@ -1932,7 +1932,8 @@ int cli_magic_scandesc(int desc, cli_ctx *ctx) |
1932 | 1932 |
} |
1933 | 1933 |
} |
1934 | 1934 |
|
1935 |
- if(type != CL_TYPE_IGNORED && ret != CL_VIRUS && !ctx->engine->sdb) { |
|
1935 |
+ /* CL_TYPE_HTML: raw HTML file already scanned in cli_scanhtml() */ |
|
1936 |
+ if(type != CL_TYPE_IGNORED && type != CL_TYPE_HTML && ret != CL_VIRUS && !ctx->engine->sdb) { |
|
1936 | 1937 |
if(cli_scanraw(desc, ctx, type, typercg) == CL_VIRUS) |
1937 | 1938 |
return CL_VIRUS; |
1938 | 1939 |
} |