From 3d10a9ead7d1241035160ab3355577051186b0fd Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 20 Nov 2015 17:03:51 +0000 Subject: Rework upstreams initialization --- src/smtp_proxy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/smtp_proxy.c') diff --git a/src/smtp_proxy.c b/src/smtp_proxy.c index 390ca292b..74c1da4c7 100644 --- a/src/smtp_proxy.c +++ b/src/smtp_proxy.c @@ -1073,9 +1073,8 @@ start_smtp_proxy (struct rspamd_worker *worker) ctx->ev_base, worker->srv->cfg); - worker->srv->cfg->ups_ctx = rspamd_upstreams_library_init (ctx->resolver->r, - ctx->ev_base); - rspamd_upstreams_library_config (worker->srv->cfg, worker->srv->cfg->ups_ctx); + rspamd_upstreams_library_config (worker->srv->cfg, worker->srv->cfg->ups_ctx, + ctx->ev_base, ctx->resolver->r); /* Set umask */ umask (S_IWGRP | S_IWOTH | S_IROTH | S_IRGRP); -- cgit v1.2.3