Browse code

bb#3789 part 2

aCaB authored on 2012/03/01 02:39:40
Showing 2 changed files
... ...
@@ -1,3 +1,9 @@
1
+Wed Feb 29 18:35:45 CET 2012 (acab)
2
+-----------------------------------
3
+ * libclamav/bytecode.c: reset to BYTECODE_AUTO mode at db reload so that
4
+			 we don't fail to re-enable or re-disable it again
5
+			 (bb#3789)
6
+
1 7
 Tue Jan 17 11:15:57 CET 2012 (acab)
2 8
 -----------------------------------
3 9
  * misc: performance improvement for HP-UX PA-RISC - patch from 
... ...
@@ -2416,6 +2416,7 @@ int cli_bytecode_prepare2(struct cl_engine *engine, struct cli_all_bc *bcs, unsi
2416 2416
 	return CL_SUCCESS;
2417 2417
     }
2418 2418
 
2419
+    engine->bytecode_mode = CL_BYTECODE_MODE_AUTO;
2419 2420
     cli_detect_environment(&bcs->env);
2420 2421
     switch (bcs->env.arch) {
2421 2422
 	case arch_i386: