diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-19 15:37:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-19 16:29:21 +0100 |
commit | e3dc1d07f68861388895bd1f76b639189ec9cbb6 (patch) | |
tree | b586eccd6f3e04c08ba720ed0d0b85c6b01933d9 /src/plugins/dkim_check.c | |
parent | d671707efb0803b291f1095cfdaef8f5d7bbe457 (diff) | |
download | rspamd-e3dc1d07f68861388895bd1f76b639189ec9cbb6.tar.gz rspamd-e3dc1d07f68861388895bd1f76b639189ec9cbb6.zip |
Fix reloading of C plugins.
Diffstat (limited to 'src/plugins/dkim_check.c')
-rw-r--r-- | src/plugins/dkim_check.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index 69dee2859..28bdbf3c3 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -259,7 +259,9 @@ dkim_module_reconfig (struct rspamd_config *cfg) if (dkim_module_ctx->dkim_domains) { g_hash_table_destroy (dkim_module_ctx->dkim_domains); } - memset (dkim_module_ctx, 0, sizeof (*dkim_module_ctx)); + + memset (dkim_module_ctx + sizeof (dkim_module_ctx->ctx), + 0, sizeof (*dkim_module_ctx) - sizeof (dkim_module_ctx->ctx)); dkim_module_ctx->dkim_pool = rspamd_mempool_new ( rspamd_mempool_suggest_size ()); |