aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstat/stat_config.c')
-rw-r--r--src/libstat/stat_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c
index 96af1eb53..6e383baf1 100644
--- a/src/libstat/stat_config.c
+++ b/src/libstat/stat_config.c
@@ -152,11 +152,11 @@ rspamd_stat_init (struct rspamd_config *cfg, struct event_base *ev_base)
cache_name = NULL;
if (clf->opts) {
- cache_obj = ucl_object_find_key (clf->opts, "cache");
+ cache_obj = ucl_object_lookup (clf->opts, "cache");
cache_name_obj = NULL;
if (cache_obj) {
- cache_name_obj = ucl_object_find_any_key (cache_obj,
+ cache_name_obj = ucl_object_lookup_any (cache_obj,
"name", "type", NULL);
}