]> git.pld-linux.org Git - packages/apache-mod_clamav.git/blob - apache-mod_clamav-clamav.patch
5dce2935d7549f3a25eed7896e8f68746d7858d8
[packages/apache-mod_clamav.git] / apache-mod_clamav-clamav.patch
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 */
This page took 0.104171 seconds and 3 git commands to generate.