From 26d6ee991131d43edf89d4d34077187527be8562 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 28 Nov 2016 12:34:27 +0000 Subject: [Fix] Fix usage of config during reload --- src/hs_helper.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/hs_helper.c') 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); } -- cgit v1.2.3