diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-30 13:11:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-30 13:11:10 +0100 |
commit | 58550f6fcb6ca819d8e7f184aba2da409d6972f6 (patch) | |
tree | 59d5d2da25dfaaf077848c457f7495422e27298c /src/lua | |
parent | 8d271079beaf5c6e69eced2a234f59a83208717e (diff) | |
download | rspamd-58550f6fcb6ca819d8e7f184aba2da409d6972f6.tar.gz rspamd-58550f6fcb6ca819d8e7f184aba2da409d6972f6.zip |
[Minor] Initialize composite policy when defined from Lua
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 35b7dc332..41e323753 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -2272,7 +2272,8 @@ lua_config_add_composite (lua_State * L) msg_warn_config ("composite %s is redefined", name); new = FALSE; } - composite = rspamd_mempool_alloc (cfg->cfg_pool, + + composite = rspamd_mempool_alloc0 (cfg->cfg_pool, sizeof (struct rspamd_composite)); composite->expr = expr; composite->id = g_hash_table_size (cfg->composite_symbols); |