diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-04 16:07:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-04 16:07:14 +0100 |
commit | 6a74976d4447f1cadba2b5f3a3c7847e4c9d27a8 (patch) | |
tree | 5b8333907e45b7f1e99c80223d945b77a4bc7e35 /src/hs_helper.c | |
parent | 92b3c8a70c1bc48c6af43bdd988caab4bdaab075 (diff) | |
download | rspamd-6a74976d4447f1cadba2b5f3a3c7847e4c9d27a8.tar.gz rspamd-6a74976d4447f1cadba2b5f3a3c7847e4c9d27a8.zip |
[Feature] Add magic for all workers' contexts
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r-- | src/hs_helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c index 5885461aa..1434f551a 100644 --- a/src/hs_helper.c +++ b/src/hs_helper.c @@ -39,11 +39,13 @@ worker_t hs_helper_worker = { static const gdouble default_max_time = 1.0; static const gdouble default_recompile_time = 60.0; +static const guint64 rspamd_hs_helper_magic = 0x22d310157a2288a0ULL; /* * Worker's context */ struct hs_helper_ctx { + guint64 magic; gchar *hs_dir; gboolean loaded; gdouble max_time; @@ -62,6 +64,7 @@ init_hs_helper (struct rspamd_config *cfg) type = g_quark_try_string ("hs_helper"); ctx = g_malloc0 (sizeof (*ctx)); + ctx->magic = rspamd_hs_helper_magic; ctx->cfg = cfg; ctx->hs_dir = RSPAMD_DBDIR "/"; ctx->max_time = default_max_time; |