diff options
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r-- | src/lua/lua_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index eb3b7de3f..960d3457d 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -173,9 +173,9 @@ rspamd_lua_set_path (lua_State *L, struct rspamd_config *cfg) return; } - opts = ucl_object_find_key (cfg->rcl_obj, "options"); + opts = ucl_object_lookup (cfg->rcl_obj, "options"); if (opts != NULL) { - opts = ucl_object_find_key (opts, "lua_path"); + opts = ucl_object_lookup (opts, "lua_path"); if (opts != NULL && ucl_object_type (opts) == UCL_STRING) { additional_path = ucl_object_tostring (opts); } |