diff options
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r-- | src/libstat/stat_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index b50a36894..6b1b16aed 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -702,7 +702,7 @@ rspamd_stat_check_autolearn (struct rspamd_task *task) ret = FALSE; if (cl->cfg->opts) { - obj = ucl_object_find_key (cl->cfg->opts, "autolearn"); + obj = ucl_object_lookup (cl->cfg->opts, "autolearn"); if (ucl_object_type (obj) == UCL_BOOLEAN) { if (ucl_object_toboolean (obj)) { |