Sfoglia il codice sorgente

[Fix] Do not load errored hyperscan database

tags/2.7
Vsevolod Stakhov 3 anni fa
parent
commit
797a8e37b9
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7
    0
      src/hs_helper.c

+ 7
- 0
src/hs_helper.c Vedi File

@@ -214,6 +214,13 @@ rspamd_rs_compile_cb (guint ncompiled, GError *err, void *cbd)

ctx = (struct hs_helper_ctx *)worker->ctx;

if (err != NULL) {
/* Failed to compile: log and go out */
msg_err ("cannot compile Hyperscan database: %e", err);

return;
}

if (ncompiled > 0) {
/* Enforce update for other workers */
hack_global_forced = TRUE;

Loading…
Annulla
Salva