From: Vsevolod Stakhov Date: Mon, 30 Dec 2013 17:08:41 +0000 (+0000) Subject: Unknown symbols now have zero weight not 1.0. X-Git-Tag: 0.6.7~38^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c5e10a08439bb9d91ccb7268f76725de2650f50a;p=rspamd.git Unknown symbols now have zero weight not 1.0. --- diff --git a/src/filter.c b/src/filter.c index d635c49e5..b1448f173 100644 --- a/src/filter.c +++ b/src/filter.c @@ -89,7 +89,7 @@ insert_metric_result (struct worker_task *task, struct metric *metric, const gch weight = g_hash_table_lookup (metric->symbols, symbol); if (weight == NULL) { - w = 1.0 * flag; + w = 0.0; } else { w = (*weight) * flag;