diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-26 20:22:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-26 20:22:46 +0000 |
commit | 797a8e37b97dea707937df30406caae25961f58b (patch) | |
tree | 5f0333d49c6fb341e2d85c22add9ad1a12f9421e /src | |
parent | 03428744014f6b5991ab7a838a5d8b2f49922d14 (diff) | |
download | rspamd-797a8e37b97dea707937df30406caae25961f58b.tar.gz rspamd-797a8e37b97dea707937df30406caae25961f58b.zip |
[Fix] Do not load errored hyperscan database
Diffstat (limited to 'src')
-rw-r--r-- | src/hs_helper.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c index 5cef731f2..1f915b01b 100644 --- a/src/hs_helper.c +++ b/src/hs_helper.c @@ -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; |