diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-22 01:11:02 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-22 01:11:02 +0000 |
commit | 1c01e556e390ff5263136a34900334a689bef67f (patch) | |
tree | 5a69b394ef6900f6de8a256dd29fd8feace04dfd /src | |
parent | 55b9409a85854e9c01240827dbbfa33bbb3af4ee (diff) | |
download | rspamd-1c01e556e390ff5263136a34900334a689bef67f.tar.gz rspamd-1c01e556e390ff5263136a34900334a689bef67f.zip |
Fix another critical composites issue and memory corruption.
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/cfg_rcl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index c512217e0..97481e6b2 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1052,7 +1052,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); |