From a3a0afbf39fbeb2fae08573c426db631aa9dddbe Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 22 Jan 2015 01:11:02 +0000 Subject: [PATCH] Fix another critical composites issue and memory corruption. --- src/libserver/cfg_rcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 13ef400ed..09e882709 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1102,7 +1102,7 @@ rspamd_rcl_composite_handler (struct rspamd_config *cfg, composite = rspamd_mempool_alloc (cfg->cfg_pool, sizeof (struct rspamd_composite)); composite->expr = expr; - composite->id = g_hash_table_size (cfg->composite_symbols) + 1; + composite->id = g_hash_table_size (cfg->composite_symbols); g_hash_table_insert (cfg->composite_symbols, (gpointer)composite_name, composite); -- 2.39.5