summaryrefslogtreecommitdiffstats
path: root/src/libserver/dns.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-08 17:12:44 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-08 17:12:44 +0000
commit16bb4d5c1efe0e45f1ad6dddac20f954ea8d0778 (patch)
tree9840a5f59ab3807c155a176461585c34f58d6c7b /src/libserver/dns.c
parentcdf45ced6793f066bd965336cf8d2f443807bcbd (diff)
downloadrspamd-16bb4d5c1efe0e45f1ad6dddac20f954ea8d0778.tar.gz
rspamd-16bb4d5c1efe0e45f1ad6dddac20f954ea8d0778.zip
[Fix] Fail DNS upstream on each retransmit attempt
Diffstat (limited to 'src/libserver/dns.c')
-rw-r--r--src/libserver/dns.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libserver/dns.c b/src/libserver/dns.c
index 710f96b3a..f5b35eab7 100644
--- a/src/libserver/dns.c
+++ b/src/libserver/dns.c
@@ -30,7 +30,9 @@ static struct rdns_upstream_elt* rspamd_dns_select_upstream (const char *name,
size_t len, void *ups_data);
static struct rdns_upstream_elt* rspamd_dns_select_upstream_retransmit (
const char *name,
- size_t len, void *ups_data);
+ size_t len,
+ struct rdns_upstream_elt *prev_elt,
+ void *ups_data);
static void rspamd_dns_upstream_ok (struct rdns_upstream_elt *elt,
void *ups_data);
static void rspamd_dns_upstream_fail (struct rdns_upstream_elt *elt,
@@ -815,7 +817,9 @@ rspamd_dns_select_upstream (const char *name,
static struct rdns_upstream_elt*
rspamd_dns_select_upstream_retransmit (
const char *name,
- size_t len, void *ups_data)
+ size_t len,
+ struct rdns_upstream_elt *prev_elt,
+ void *ups_data)
{
struct upstream_list *ups = ups_data;
struct upstream *up;