瀏覽代碼

[Fix] Do not compile hyperscan with no SSSE3 support

tags/1.5.4
Vsevolod Stakhov 7 年之前
父節點
當前提交
3307ad5d3a
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      src/hs_helper.c

+ 6
- 0
src/hs_helper.c 查看文件

@@ -181,6 +181,12 @@ rspamd_rs_compile (struct hs_helper_ctx *ctx, struct rspamd_worker *worker,
static struct rspamd_srv_command srv_cmd;
gint ncompiled;

if (!(ctx->cfg->libs_ctx->crypto_ctx->cpu_config & CPUID_SSSE3)) {
msg_warn ("CPU doesn't have SSSE3 instructions set "
"required for hyperscan, disable hyperscan compilation");
return FALSE;
}

if (!rspamd_hs_helper_cleanup_dir (ctx, forced)) {
msg_warn ("cannot cleanup cache dir '%s'", ctx->hs_dir);
}

Loading…
取消
儲存