diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-28 12:34:27 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-28 12:34:49 +0000 |
commit | 26d6ee991131d43edf89d4d34077187527be8562 (patch) | |
tree | f13ed1ed5ff018dc4ca3e2ed00178889f4419be0 /src/lua_worker.c | |
parent | 902ebce8b6c60a0a1cc1501c6da1ada1d2b2b4a5 (diff) | |
download | rspamd-26d6ee991131d43edf89d4d34077187527be8562.tar.gz rspamd-26d6ee991131d43edf89d4d34077187527be8562.zip |
[Fix] Fix usage of config during reload
Diffstat (limited to 'src/lua_worker.c')
-rw-r--r-- | src/lua_worker.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c index b3a644566..296910761 100644 --- a/src/lua_worker.c +++ b/src/lua_worker.c @@ -356,6 +356,7 @@ start_lua_worker (struct rspamd_worker *worker) L = worker->srv->cfg->lua_state; ctx->L = L; ctx->cfg = worker->srv->cfg; + REF_RETAIN (ctx->cfg); ctx->resolver = dns_resolver_init (worker->srv->logger, ctx->ev_base, @@ -413,6 +414,7 @@ start_lua_worker (struct rspamd_worker *worker) } rspamd_log_close (worker->srv->logger); + REF_RELEASE (ctx->cfg); exit (EXIT_SUCCESS); } |