aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 770337ca5..d023354bf 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -2259,6 +2259,8 @@ start_fuzzy (struct rspamd_worker *worker)
FALSE);
ctx->peer_fd = -1;
ctx->worker = worker;
+ ctx->cfg = worker->srv->cfg;
+ REF_RETAIN (ctx->cfg);
double_to_tv (ctx->master_timeout, &ctx->master_io_tv);
ctx->resolver = dns_resolver_init (worker->srv->logger,
@@ -2367,6 +2369,7 @@ start_fuzzy (struct rspamd_worker *worker)
rspamd_lru_hash_destroy (ctx->errors_ips);
g_hash_table_unref (ctx->keys);
+ REF_RELEASE (ctx->cfg);
exit (EXIT_SUCCESS);
}