From: Vsevolod Stakhov Date: Mon, 22 Sep 2014 10:17:32 +0000 (+0100) Subject: Fix fuzzy module reinitialization. X-Git-Tag: 0.7.1~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=97418835d0ab6ad5d28086626758f73d9f09eba3;p=rspamd.git Fix fuzzy module reinitialization. --- 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;