]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix autolearn parameters reading
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Jan 2018 19:20:54 +0000 (19:20 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Jan 2018 19:21:39 +0000 (19:21 +0000)
Issue: #1980
Closes: #1980
src/libstat/stat_process.c

index 9ca26cd83fb47378418ea37af3b51872ef625e4a..886108d5d9458172bf096092da6cf0e7240c65de 100644 (file)
@@ -1140,7 +1140,7 @@ rspamd_stat_check_autolearn (struct rspamd_task *task)
                                if ((ucl_object_type (elt1) == UCL_FLOAT ||
                                                ucl_object_type (elt1) == UCL_INT) &&
                                        (ucl_object_type (elt2) == UCL_FLOAT ||
-                                               ucl_object_type (elt1) == UCL_INT)) {
+                                               ucl_object_type (elt2) == UCL_INT)) {
                                        ham_score = ucl_object_todouble (elt1);
                                        spam_score = ucl_object_todouble (elt2);