From: Vsevolod Stakhov Date: Wed, 21 Jan 2015 22:05:38 +0000 (+0000) Subject: Fix critical issue with composites weights. X-Git-Tag: 0.9.0~851 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=55b9409a85854e9c01240827dbbfa33bbb3af4ee;p=rspamd.git Fix critical issue with composites weights. --- 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);