commit 4378028: [Fix] Initialise symcache even if it cannot be loaded properly

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Apr 15 15:28:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-04-15 16:26:28 +0100
URL: https://github.com/rspamd/rspamd/commit/43780287c7e02c55920d641f653b492839f7eba0

[Fix] Initialise symcache even if it cannot be loaded properly

---
 src/libserver/rspamd_symcache.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c
index 5c72a714d..2d2eb142f 100644
--- a/src/libserver/rspamd_symcache.c
+++ b/src/libserver/rspamd_symcache.c
@@ -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 */


More information about the Commits mailing list