]>
Commit | Line | Data |
---|---|---|
971c2e7b JB |
1 | --- mod_clamav-0.23/filter.c.orig 2009-04-11 01:32:37.000000000 +0200 |
2 | +++ mod_clamav-0.23/filter.c 2018-12-11 21:11:10.654402097 +0100 | |
3 | @@ -142,8 +142,16 @@ | |
4 | switch (rec->mode) { | |
5 | case MOD_CLAMAV_LOCAL: | |
6 | /* virus scan using local clamav library */ | |
7 | +#ifdef CL_SCAN_ARCHIVE | |
8 | return cl_scanfile(ctx->filename, virname, (unsigned long *)len, | |
9 | rec->common->local->engine, CL_SCAN_ARCHIVE); | |
10 | +#else | |
11 | + { | |
12 | + struct cl_scan_options scanoptions = {0, CL_SCAN_PARSE_ARCHIVE, 0, 0, 0}; | |
13 | + return cl_scanfile(ctx->filename, virname, (unsigned long *)len, | |
14 | + rec->common->local->engine, &scanoptions); | |
15 | + } | |
16 | +#endif | |
17 | break; | |
18 | case MOD_CLAMAV_DAEMON: | |
19 | /* set reasonable defaults for virname */ |