From d623fcbcf0ec66e0e0f1830993ecd03a585b2451 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 20 Feb 2019 13:20:30 +0000 Subject: [PATCH] [Minor] Create context for the main process --- src/rspamd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rspamd.c b/src/rspamd.c index 85191e949..ecf782864 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -1489,6 +1489,9 @@ main (gint argc, gchar **argv, gchar **env) spawn_workers (rspamd_main, ev_base); rspamd_mempool_unlock_mutex (rspamd_main->start_mtx); + rspamd_main->http_ctx = rspamd_http_context_create (rspamd_main->cfg, + ev_base); + if (control_fd != -1) { msg_info_main ("listening for control commands on %s", rspamd_inet_address_to_string (control_addr)); -- 2.39.5