aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd_proxy.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-04 13:38:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-04 13:38:10 +0100
commit6c76c1728c81e25be854e36cd9def1d689536b27 (patch)
tree6c31c5e132be7169704b50670ef7810703124819 /src/rspamd_proxy.c
parent39dfdab80d11c6bc7b10f37d819414358d5249f9 (diff)
downloadrspamd-6c76c1728c81e25be854e36cd9def1d689536b27.tar.gz
rspamd-6c76c1728c81e25be854e36cd9def1d689536b27.zip
[Minor] Strictly check worker context magic
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r--src/rspamd_proxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c
index be3395273..dbf905609 100644
--- a/src/rspamd_proxy.c
+++ b/src/rspamd_proxy.c
@@ -2216,6 +2216,7 @@ start_rspamd_proxy (struct rspamd_worker *worker)
{
struct rspamd_proxy_ctx *ctx = worker->ctx;
+ g_assert (rspamd_worker_check_context (worker->ctx, rspamd_rspamd_proxy_magic));
ctx->cfg = worker->srv->cfg;
ctx->event_loop = rspamd_prepare_worker (worker, "rspamd_proxy",
proxy_accept_socket);