diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-20 20:23:29 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-20 20:23:29 +0000 |
commit | 4b7520470bfcb417f483384c360fa1b498632336 (patch) | |
tree | f9b668a551106613aa0cc182e324c02a1c9066af /src/libserver/cfg_rcl.c | |
parent | e325da73310bc36c61d318f587bbd7655781bd12 (diff) | |
download | rspamd-4b7520470bfcb417f483384c360fa1b498632336.tar.gz rspamd-4b7520470bfcb417f483384c360fa1b498632336.zip |
[Minor] Store composite expression in composite structure
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r-- | src/libserver/cfg_rcl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 62525c3eb..a41b391a0 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1437,6 +1437,7 @@ rspamd_rcl_composite_handler (rspamd_mempool_t *pool, rspamd_mempool_alloc0 (cfg->cfg_pool, sizeof (struct rspamd_composite)); composite->expr = expr; composite->id = g_hash_table_size (cfg->composite_symbols); + composite->str_expr = composite_expression; val = ucl_object_lookup (obj, "score"); if (val != NULL && ucl_object_todouble_safe (val, &score)) { |