From 6c76c1728c81e25be854e36cd9def1d689536b27 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 4 Oct 2019 13:38:10 +0100 Subject: [Minor] Strictly check worker context magic --- src/hs_helper.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/hs_helper.c') diff --git a/src/hs_helper.c b/src/hs_helper.c index 3cdc2a439..a20e176f6 100644 --- a/src/hs_helper.c +++ b/src/hs_helper.c @@ -303,6 +303,7 @@ start_hs_helper (struct rspamd_worker *worker) struct hs_helper_ctx *ctx = worker->ctx; double tim; + g_assert (rspamd_worker_check_context (worker->ctx, rspamd_hs_helper_magic)); ctx->cfg = worker->srv->cfg; if (ctx->hs_dir == NULL) { -- cgit v1.2.3