aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-11 15:00:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-11 15:00:01 +0100
commit6943c3c3a4dd1334aa041fcd7df9598ecec3f152 (patch)
treefa00017db0e4bf42d211c92088b72912c423fe7d /src/plugins/surbl.c
parent641353ecb1c68ef7642a15d861ff59aba672ac54 (diff)
downloadrspamd-6943c3c3a4dd1334aa041fcd7df9598ecec3f152.tar.gz
rspamd-6943c3c3a4dd1334aa041fcd7df9598ecec3f152.zip
[Minor] Refactor DNS resolver invocations
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r--src/plugins/surbl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index cab816c50..3b33e3e7f 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -1483,7 +1483,7 @@ make_surbl_requests (struct rspamd_url *url, struct rspamd_task *task,
msg_debug_surbl ("send surbl dns ip request %s to %s", surbl_req,
suffix->suffix);
- if (make_dns_request_task (task,
+ if (rspamd_dns_resolver_request_task (task,
surbl_dns_ip_callback,
(void *) param, RDNS_REQUEST_A, surbl_req)) {
param->item = item;
@@ -1510,7 +1510,7 @@ make_surbl_requests (struct rspamd_url *url, struct rspamd_task *task,
rspamd_mempool_strdup (task->task_pool, url->surbl);
msg_debug_surbl ("send surbl dns request %s", surbl_req);
- if (make_dns_request_task (task,
+ if (rspamd_dns_resolver_request_task (task,
surbl_dns_callback,
(void *) param, RDNS_REQUEST_A, surbl_req)) {
param->item = item;
@@ -1675,7 +1675,7 @@ surbl_dns_ip_callback (struct rdns_reply *reply, gpointer arg)
param->host_resolve,
to_resolve);
- if (make_dns_request_task (task,
+ if (rspamd_dns_resolver_request_task (task,
surbl_dns_callback,
param, RDNS_REQUEST_A, to_resolve->str)) {
rspamd_symcache_item_async_inc (param->task, param->item, M);