aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-30 17:08:41 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-30 17:08:41 +0000
commitc5e10a08439bb9d91ccb7268f76725de2650f50a (patch)
tree9b27626a95feb3c22c7c9126c60fc9f8090369a2
parent2c3794e8f11308be3d53e3761810bb2e9901970b (diff)
downloadrspamd-c5e10a08439bb9d91ccb7268f76725de2650f50a.tar.gz
rspamd-c5e10a08439bb9d91ccb7268f76725de2650f50a.zip
Unknown symbols now have zero weight not 1.0.
-rw-r--r--src/filter.c2
1 files changed, 1 insertions, 1 deletions
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;