summaryrefslogtreecommitdiffstats
path: root/contrib/librdns/rdns.h
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 /contrib/librdns/rdns.h
parentcdf45ced6793f066bd965336cf8d2f443807bcbd (diff)
downloadrspamd-16bb4d5c1efe0e45f1ad6dddac20f954ea8d0778.tar.gz
rspamd-16bb4d5c1efe0e45f1ad6dddac20f954ea8d0778.zip
[Fix] Fail DNS upstream on each retransmit attempt
Diffstat (limited to 'contrib/librdns/rdns.h')
-rw-r--r--contrib/librdns/rdns.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/librdns/rdns.h b/contrib/librdns/rdns.h
index b563c7ea3..1b2f63b7a 100644
--- a/contrib/librdns/rdns.h
+++ b/contrib/librdns/rdns.h
@@ -164,8 +164,9 @@ struct rdns_upstream_context {
void *data;
struct rdns_upstream_elt* (*select)(const char *name,
size_t len, void *ups_data);
- struct rdns_upstream_elt* (*select_retransmit)(const char *name,
- size_t len, void *ups_data);
+ struct rdns_upstream_elt* (*select_retransmit)(const char *name, size_t len,
+ struct rdns_upstream_elt* prev_elt,
+ void *ups_data);
unsigned int (*count)(void *ups_data);
void (*ok)(struct rdns_upstream_elt *elt, void *ups_data);
void (*fail)(struct rdns_upstream_elt *elt, void *ups_data);