diff options
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r-- | src/plugins/fuzzy_check.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 2f7fb2904..61966ccb9 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -499,7 +499,8 @@ 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)); + memset (fuzzy_module_ctx + sizeof (fuzzy_module_ctx->ctx), + 0, sizeof (*fuzzy_module_ctx) - sizeof (fuzzy_module_ctx->ctx)); fuzzy_module_ctx->fuzzy_pool = rspamd_mempool_new ( rspamd_mempool_suggest_size ()); fuzzy_module_ctx->cfg = cfg; |