diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-26 15:25:41 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-26 15:25:41 +0100 |
commit | c6ccb8d28f6e45742760043333b5ae374e9fbd12 (patch) | |
tree | a4406762354c28eb67d1ca958199dccf7e42f07a /src/lua | |
parent | 7f702c6f3416f85238a48794c86bc8cb334e4df6 (diff) | |
download | rspamd-c6ccb8d28f6e45742760043333b5ae374e9fbd12.tar.gz rspamd-c6ccb8d28f6e45742760043333b5ae374e9fbd12.zip |
[Rework] Completely rework symbols cache management
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 404251592..69f50acff 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -2379,7 +2379,9 @@ lua_config_newindex (lua_State *L) /* Here we pop function from the stack, so no lua_pop is required */ condref = luaL_ref (L, LUA_REGISTRYINDEX); - rspamd_symbols_cache_add_condition (cfg->cache, id, L, condref); + g_assert (name != NULL); + rspamd_symbols_cache_add_condition_delayed (cfg->cache, + name, L, condref); } else { lua_pop (L, 1); |