diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-08 17:12:44 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-08 17:12:44 +0000 |
commit | 16bb4d5c1efe0e45f1ad6dddac20f954ea8d0778 (patch) | |
tree | 9840a5f59ab3807c155a176461585c34f58d6c7b /contrib/librdns/rdns.h | |
parent | cdf45ced6793f066bd965336cf8d2f443807bcbd (diff) | |
download | rspamd-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.h | 5 |
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); |