aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/cfg_file.h1
-rw-r--r--src/libserver/rspamd_symcache.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index dc11d7aab..a3cf93d63 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -136,6 +136,7 @@ struct rspamd_symbol {
struct rspamd_symbols_group *gr; /* Main group */
GPtrArray *groups; /* Other groups */
enum rspamd_symbol_flags flags;
+ struct rspamd_symcache_item *cache_item;
gint nshots;
};
diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c
index deb1cfadd..fd9db9126 100644
--- a/src/libserver/rspamd_symcache.c
+++ b/src/libserver/rspamd_symcache.c
@@ -1300,6 +1300,7 @@ rspamd_symcache_metric_validate_cb (gpointer k, gpointer v, gpointer ud)
if (item) {
item->st->weight = weight;
+ s->cache_item = item;
}
}