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;