diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-25 13:36:01 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-25 13:36:01 +0000 |
commit | 005a8d49abeb5cd1d3ab612475eee31484796585 (patch) | |
tree | f7abc4e3074e4b7acfa869674f5e0cf9bded829e /src | |
parent | 13d62486d9d0103b214e64c389623e44e05e0813 (diff) | |
download | rspamd-005a8d49abeb5cd1d3ab612475eee31484796585.tar.gz rspamd-005a8d49abeb5cd1d3ab612475eee31484796585.zip |
[Fix] Check for NaN properly
Diffstat (limited to 'src')
-rw-r--r-- | src/libmime/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c index b16fdfafa..cffa9e215 100644 --- a/src/libmime/filter.c +++ b/src/libmime/filter.c @@ -176,7 +176,7 @@ insert_metric_result (struct rspamd_task *task, diff = rspamd_check_group_score (task, symbol, gr, gr_score, diff); - if (!isnan (w)) { + if (!isnan (diff)) { metric_res->score += diff; metric_res->grow_factor = next_gf; |