]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Initialise symcache even if it cannot be loaded properly
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Apr 2021 15:26:28 +0000 (16:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Apr 2021 15:26:28 +0000 (16:26 +0100)
src/libserver/rspamd_symcache.c

index 5c72a714da3c46f5f34b339ad033b8345c006765..2d2eb142fdec5a20550b47b1a1ab7025de3a22a9 100644 (file)
@@ -1406,10 +1406,6 @@ rspamd_symcache_init (struct rspamd_symcache *cache)
                res = rspamd_symcache_load_items (cache, cache->cfg->cache_filename);
        }
 
-       if (!res) {
-               return res;
-       }
-
        rspamd_symcache_post_init (cache);
 
        /* Connect metric symbols with symcache symbols */