]>
Commit | Line | Data |
---|---|---|
b3cb6093 JB |
1 | --- avscan-5.1.1-openssl/avscan/avs_avengine_scan.c.orig 2009-04-07 02:00:00.000000000 +0200 |
2 | +++ avscan-5.1.1-openssl/avscan/avs_avengine_scan.c 2018-12-10 20:57:11.242064885 +0100 | |
3 | @@ -750,6 +750,13 @@ | |
4 | guint options; | |
5 | gchar *s; | |
6 | const gchar *virus_name = NULL; | |
882fa69a JB |
7 | +#ifdef CL_SCAN_GENERAL_HEURISTICS |
8 | + struct cl_scan_options scan_options = {CL_SCAN_GENERAL_HEURISTICS, | |
9 | + ~0, | |
b3cb6093 JB |
10 | + 0, |
11 | + 0, | |
12 | + 0}; | |
13 | +#endif | |
14 | ||
15 | /* Interrupted? */ | |
16 | if(*stop_count > 0) | |
17 | @@ -833,10 +841,17 @@ | |
18 | /* Scan this file */ | |
19 | status = (gint)cl_scandesc( | |
20 | fd, | |
882fa69a | 21 | +#ifdef CL_SCAN_GENERAL_HEURISTICS |
b3cb6093 JB |
22 | + path, |
23 | +#endif | |
24 | &virus_name, | |
25 | &scanned_blocks, | |
26 | d->engine, | |
882fa69a | 27 | +#ifdef CL_SCAN_GENERAL_HEURISTICS |
b3cb6093 JB |
28 | + &scan_options |
29 | +#else | |
30 | (unsigned int)options | |
31 | +#endif | |
32 | ); | |
33 | ||
34 | /* Close the file */ |