aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/smtp_proxy.c')
-rw-r--r--src/smtp_proxy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/smtp_proxy.c b/src/smtp_proxy.c
index 3f9444b06..0202e3cfe 100644
--- a/src/smtp_proxy.c
+++ b/src/smtp_proxy.c
@@ -48,7 +48,10 @@ worker_t smtp_proxy_worker = {
RSPAMD_WORKER_VER /* Version info */
};
+static guint64 rspamd_smtp_proxy_magic = 0xf3d849189c85f12dULL;
+
struct smtp_proxy_ctx {
+ guint64 magic;
struct upstream_list *upstreams;
gchar *upstreams_str;
@@ -965,6 +968,7 @@ init_smtp_proxy (struct rspamd_config *cfg)
type = g_quark_try_string ("smtp_proxy");
ctx = g_malloc0 (sizeof (struct smtp_worker_ctx));
+ ctx->magic = rspamd_smtp_proxy_magic;
ctx->pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL);
/* Set default values */