From d479b7c8ed1ce247d7c8beebe8870e24a151b357 Mon Sep 17 00:00:00 2001
From: Vsevolod Stakhov <vsevolod@rambler-co.ru>
Date: Mon, 14 Feb 2011 02:49:59 +0300
Subject: Fix bug with several metrics output. [1] Install surbl-whitelist. [1]

[1] Reported by Victor Ustugov
---
 src/filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/filter.c')

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
-- 
cgit v1.2.3