From: Vsevolod Stakhov Date: Wed, 10 Jan 2018 19:20:54 +0000 (+0000) Subject: [Fix] Fix autolearn parameters reading X-Git-Tag: 1.7.0~295 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=21579c5bed52a1d968691d35aed61ee7ae27234f;p=rspamd.git [Fix] Fix autolearn parameters reading Issue: #1980 Closes: #1980 --- diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 9ca26cd83..886108d5d 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -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);