]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not treat hyperscan load failure as a fatal error
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 17 Aug 2023 10:34:58 +0000 (11:34 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 17 Aug 2023 10:34:58 +0000 (11:34 +0100)
src/libserver/cfg_utils.cxx

index 3b96a268e9b7f4098d15f4b96694df52e4585dea..f2253e0510798f27e96886ac8e501e4fa3f11406 100644 (file)
@@ -923,10 +923,6 @@ rspamd_config_post_load(struct rspamd_config *cfg,
                auto hs_ret = rspamd_re_cache_load_hyperscan(cfg->re_cache,
                                                                                                         cfg->hs_cache_dir ? cfg->hs_cache_dir : RSPAMD_DBDIR "/",
                                                                                                         true);
-
-               if (hs_ret == RSPAMD_HYPERSCAN_LOAD_ERROR) {
-                       ret = FALSE;
-               }
        }
 
        if (opts & RSPAMD_CONFIG_INIT_LIBS) {