summaryrefslogtreecommitdiffstats
path: root/src/filter.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-14 02:49:59 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-14 02:49:59 +0300
commitd479b7c8ed1ce247d7c8beebe8870e24a151b357 (patch)
treebbbfc0ca8d0615aba27f777f5776a73a36837ddb /src/filter.c
parent740e75b5db4ad3280a622192ff370a9e6e45b6da (diff)
downloadrspamd-d479b7c8ed1ce247d7c8beebe8870e24a151b357.tar.gz
rspamd-d479b7c8ed1ce247d7c8beebe8870e24a151b357.zip
Fix bug with several metrics output. [1]
Install surbl-whitelist. [1] [1] Reported by Victor Ustugov
Diffstat (limited to 'src/filter.c')
-rw-r--r--src/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filter.c b/src/filter.c
index e1e5d06bc..1091de0ca 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -86,7 +86,7 @@ insert_metric_result (struct worker_task *task, struct metric *metric, const gch
if ((s = g_hash_table_lookup (metric_res->symbols, symbol)) != NULL) {
if (s->options && opts && opts != s->options) {
/* Append new options */
- s->options = g_list_concat (s->options, opts);
+ s->options = g_list_concat (s->options, g_list_copy(opts));
/*
* Note that there is no need to add new destructor of GList as elements of appended
* GList are used directly, so just free initial GList