]> source.dussan.org Git - rspamd.git/commitdiff
Unknown symbols now have zero weight not 1.0.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Dec 2013 17:08:41 +0000 (17:08 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Dec 2013 17:08:41 +0000 (17:08 +0000)
src/filter.c

index d635c49e52dd1ab402182b78d3b4873a8884ba76..b1448f1732b23d40b974f02d0f0fa59f50f1c42b 100644 (file)
@@ -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;