diff options
Diffstat (limited to 'src/lua_worker.c')
-rw-r--r-- | src/lua_worker.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c index ea876cec5..87f597e28 100644 --- a/src/lua_worker.c +++ b/src/lua_worker.c @@ -47,10 +47,12 @@ worker_t lua_worker = { RSPAMD_WORKER_VER /* Version info */ }; +static const guint64 rspamd_lua_ctx_magic = 0x8055e2652aacf96eULL; /* * Worker's context */ struct rspamd_lua_worker_ctx { + guint64 magic; /* DNS resolver */ struct rspamd_dns_resolver *resolver; /* Events base */ @@ -310,6 +312,7 @@ init_lua_worker (struct rspamd_config *cfg) type = g_quark_try_string ("lua"); ctx = g_malloc0 (sizeof (struct rspamd_lua_worker_ctx)); + ctx->magic = rspamd_lua_ctx_magic; ctx->params = g_hash_table_new_full (rspamd_str_hash, rspamd_str_equal, g_free, |