git-svn: trunk@2935
Tomasz Kojm authored on 2007/03/13 10:58:17... | ... |
@@ -1837,8 +1837,11 @@ static int cli_scanraw(int desc, cli_ctx *ctx, cli_file_t type) |
1837 | 1837 |
free(peinfo.section); |
1838 | 1838 |
|
1839 | 1839 |
lseek(desc, fpt->offset, SEEK_SET); |
1840 |
- if((nret = cli_scanembpe(desc, ctx)) == CL_VIRUS) |
|
1841 |
- break; |
|
1840 |
+ nret = cli_scanembpe(desc, ctx); |
|
1841 |
+ break; /* we can stop here, other embedded |
|
1842 |
+ * executables will be found recursively |
|
1843 |
+ * through the above call |
|
1844 |
+ */ |
|
1842 | 1845 |
} |
1843 | 1846 |
} |
1844 | 1847 |
fpt = fpt->next; |