commit d194684: [Minor] Add fail-safe for composites processing
Vsevolod Stakhov
vsevolod at rspamd.com
Sat Jun 17 14:49:07 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-06-17 15:45:39 +0100
URL: https://github.com/rspamd/rspamd/commit/d1946842f33baa0e45caa0f724f911cc789ee738 (HEAD -> master)
[Minor] Add fail-safe for composites processing
---
src/libserver/symcache/symcache_c.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/symcache/symcache_c.cxx b/src/libserver/symcache/symcache_c.cxx
index a2dc08a78..3554bdcf2 100644
--- a/src/libserver/symcache/symcache_c.cxx
+++ b/src/libserver/symcache/symcache_c.cxx
@@ -698,7 +698,7 @@ rspamd_symcache_composites_foreach(struct rspamd_task *task,
real_cache->composites_foreach([&](const auto *item) {
auto *dyn_item = cache_runtime->get_dynamic_item(item->id);
- if (!dyn_item->started) {
+ if (dyn_item && !dyn_item->started) {
auto *old_item = cache_runtime->set_cur_item(dyn_item);
func((void *)item->get_name().c_str(), item->get_cbdata(), fd);
dyn_item->finished = true;
More information about the Commits
mailing list