From d732b5aa671d03f28dc7efbfb380f46f54d33636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B6r=C3=B6k=20Edvin?= Date: Mon, 9 Aug 2010 22:40:48 +0300 Subject: [PATCH] Reenable JIT selfcheck. Lost in startup.cbc conversion. --- libclamav/bytecode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libclamav/bytecode.c b/libclamav/bytecode.c index 76f54ab27..af0482711 100644 --- a/libclamav/bytecode.c +++ b/libclamav/bytecode.c @@ -2322,8 +2322,10 @@ int cli_bytecode_prepare(struct cl_engine *engine, struct cli_all_bc *bcs, unsig } cli_bytecode_context_destroy(ctx); + if (engine->bytecode_mode != CL_BYTECODE_MODE_INTERPRETER && engine->bytecode_mode != CL_BYTECODE_MODE_OFF) { + selfcheck(1, bcs->engine); rc = cli_bytecode_prepare_jit(bcs); if (rc == CL_SUCCESS) { jitok = 1;