diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-22 11:17:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-22 11:17:32 +0100 |
commit | 97418835d0ab6ad5d28086626758f73d9f09eba3 (patch) | |
tree | 0e02146ee014738887b5a2637ebdcd8824c24b0b /src/plugins/fuzzy_check.c | |
parent | 52c8aecd5ebda9acd8178483adf2b86f4eff033e (diff) | |
download | rspamd-97418835d0ab6ad5d28086626758f73d9f09eba3.tar.gz rspamd-97418835d0ab6ad5d28086626758f73d9f09eba3.zip |
Fix fuzzy module reinitialization.
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r-- | src/plugins/fuzzy_check.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index c40179774..87b9b629c 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -521,6 +521,7 @@ fuzzy_check_module_reconfig (struct rspamd_config *cfg) { rspamd_mempool_delete (fuzzy_module_ctx->fuzzy_pool); + memset (fuzzy_module_ctx, 0, sizeof (*fuzzy_module_ctx)); fuzzy_module_ctx->fuzzy_pool = rspamd_mempool_new ( rspamd_mempool_suggest_size ()); fuzzy_module_ctx->cfg = cfg; |