aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-21 22:05:38 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-21 22:05:56 +0000
commit55b9409a85854e9c01240827dbbfa33bbb3af4ee (patch)
tree313e5970729ddecc081ce5c5c021c6f3c63d3e21
parent3be582e74003f9c080c5af6c056c599f806d7fd5 (diff)
downloadrspamd-55b9409a85854e9c01240827dbbfa33bbb3af4ee.tar.gz
rspamd-55b9409a85854e9c01240827dbbfa33bbb3af4ee.zip
Fix critical issue with composites weights.
-rw-r--r--src/libmime/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c
index 1a050657b..e581a167b 100644
--- a/src/libmime/filter.c
+++ b/src/libmime/filter.c
@@ -551,7 +551,7 @@ composites_foreach_callback (gpointer key, gpointer value, void *data)
rd->remove_symbol = TRUE;
rd->remove_weight = TRUE;
}
- if (!g_tree_lookup (cd->symbols_to_remove, rd)) {
+ if (!g_tree_lookup (cd->symbols_to_remove, ms->name)) {
g_tree_insert (cd->symbols_to_remove,
(gpointer)ms->name,
rd);