From e4d146bfc88fdeed63034f7cc85f2602b25163fb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 16 Feb 2016 17:08:57 +0000 Subject: Fix maps initialisation --- src/fuzzy_storage.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/fuzzy_storage.c') diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 844198a21..86153f01c 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -107,6 +107,7 @@ struct rspamd_fuzzy_storage_ctx { rspamd_lru_hash_t *errors_ips; struct rspamd_fuzzy_backend *backend; GQueue *updates_pending; + struct rspamd_dns_resolver *resolver; }; enum fuzzy_cmd_type { @@ -1401,7 +1402,10 @@ start_fuzzy (struct rspamd_worker *worker) } /* Maps events */ - rspamd_map_watch (worker->srv->cfg, ctx->ev_base); + ctx->resolver = dns_resolver_init (worker->srv->logger, + ctx->ev_base, + worker->srv->cfg); + rspamd_map_watch (worker->srv->cfg, ctx->ev_base, ctx->resolver); /* Get peer pipe */ memset (&srv_cmd, 0, sizeof (srv_cmd)); -- cgit v1.2.3