summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-08-22 20:31:58 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-08-22 20:31:58 +0400
commit623320f7c5e6fd2a6a6502978718350533990dfc (patch)
tree9152c4e20f5034c105808abca2e97d74b4d23fe9 /src/lua/lua_task.c
parent18bc026ac441ebfd1ea91007e6bae1385c8a5420 (diff)
downloadrspamd-623320f7c5e6fd2a6a6502978718350533990dfc.tar.gz
rspamd-623320f7c5e6fd2a6a6502978718350533990dfc.zip
* Fix DNS PTR resolving
* Add ability to resolve ip in once_received plugin to avoid temporary DNS fails of SMTP resolving
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 92c57a9d6..eb6ba2690 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -668,7 +668,8 @@ lua_task_resolve_dns_ptr (lua_State * L)
msg_info ("invalid parameters passed to function");
return 0;
}
- if (make_dns_request (task->resolver, task->s, task->task_pool, lua_dns_callback, (void *)cd, DNS_REQUEST_PTR, ina)) {
+ if (make_dns_request (task->resolver, task->s, task->task_pool,
+ lua_dns_callback, (void *)cd, DNS_REQUEST_PTR, ina)) {
task->dns_requests ++;
task->save.saved++;
}