aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-26 15:25:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-26 15:25:41 +0100
commitc6ccb8d28f6e45742760043333b5ae374e9fbd12 (patch)
treea4406762354c28eb67d1ca958199dccf7e42f07a /src/plugins
parent7f702c6f3416f85238a48794c86bc8cb334e4df6 (diff)
downloadrspamd-c6ccb8d28f6e45742760043333b5ae374e9fbd12.tar.gz
rspamd-c6ccb8d28f6e45742760043333b5ae374e9fbd12.zip
[Rework] Completely rework symbols cache management
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/regexp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index c08568839..0f7bb4ff8 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -257,8 +257,10 @@ regexp_module_config (struct rspamd_config *cfg)
if (elt != NULL && ucl_object_type (elt) == UCL_USERDATA) {
struct ucl_lua_funcdata *conddata;
+ g_assert (cur_item->symbol != NULL);
conddata = ucl_object_toclosure (elt);
- rspamd_symbols_cache_add_condition (cfg->cache, id,
+ rspamd_symbols_cache_add_condition_delayed (cfg->cache,
+ cur_item->symbol,
conddata->L, conddata->idx);
}