aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs_helper.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-28 12:34:27 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-28 12:34:49 +0000
commit26d6ee991131d43edf89d4d34077187527be8562 (patch)
treef13ed1ed5ff018dc4ca3e2ed00178889f4419be0 /src/hs_helper.c
parent902ebce8b6c60a0a1cc1501c6da1ada1d2b2b4a5 (diff)
downloadrspamd-26d6ee991131d43edf89d4d34077187527be8562.tar.gz
rspamd-26d6ee991131d43edf89d4d34077187527be8562.zip
[Fix] Fix usage of config during reload
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r--src/hs_helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c
index 90abdf0be..f4f3bed88 100644
--- a/src/hs_helper.c
+++ b/src/hs_helper.c
@@ -268,6 +268,7 @@ start_hs_helper (struct rspamd_worker *worker)
double tim;
ctx->cfg = worker->srv->cfg;
+ REF_RETAIN (ctx->cfg);
if (ctx->hs_dir == NULL) {
ctx->hs_dir = ctx->cfg->hs_cache_dir;
@@ -299,6 +300,7 @@ start_hs_helper (struct rspamd_worker *worker)
rspamd_worker_block_signals ();
rspamd_log_close (worker->srv->logger);
+ REF_RELEASE (ctx->cfg);
exit (EXIT_SUCCESS);
}