diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-16 17:08:57 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-16 17:08:57 +0000 |
commit | e4d146bfc88fdeed63034f7cc85f2602b25163fb (patch) | |
tree | d3a84e44f00fccaa92618c502c11f8c1aecb743b /src/fuzzy_storage.c | |
parent | 7a1aac9058a1b5f06d3212f1abf1eae701775a92 (diff) | |
download | rspamd-e4d146bfc88fdeed63034f7cc85f2602b25163fb.tar.gz rspamd-e4d146bfc88fdeed63034f7cc85f2602b25163fb.zip |
Fix maps initialisation
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 6 |
1 files changed, 5 insertions, 1 deletions
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)); |