aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp_proxy.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-20 16:17:24 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-20 16:17:24 +0000
commit13cb93001a2cb7dbf7db85b25ac22558da4f610b (patch)
tree468ad6403e5649017593b3c8ae960132759a7045 /src/smtp_proxy.c
parenta42332ca48be149ed950ed9ccaf81d58783a13c9 (diff)
downloadrspamd-13cb93001a2cb7dbf7db85b25ac22558da4f610b.tar.gz
rspamd-13cb93001a2cb7dbf7db85b25ac22558da4f610b.zip
Fix upstreams usage
Diffstat (limited to 'src/smtp_proxy.c')
-rw-r--r--src/smtp_proxy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/smtp_proxy.c b/src/smtp_proxy.c
index 0ae9c70c4..390ca292b 100644
--- a/src/smtp_proxy.c
+++ b/src/smtp_proxy.c
@@ -1073,8 +1073,9 @@ start_smtp_proxy (struct rspamd_worker *worker)
ctx->ev_base,
worker->srv->cfg);
- 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_init (ctx->resolver->r,
+ ctx->ev_base);
+ rspamd_upstreams_library_config (worker->srv->cfg, worker->srv->cfg->ups_ctx);
/* Set umask */
umask (S_IWGRP | S_IWOTH | S_IROTH | S_IRGRP);