aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_dns.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-28 10:07:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-28 10:07:45 +0100
commit7d0cad988cf39294f629045a9b72928df1ecad79 (patch)
tree7bef132bb19444130bf5383ddb6a8cfb6a0ed783 /src/lua/lua_dns.c
parent4d0e9795292a161a93e0345c2d59c5fb90e40e39 (diff)
downloadrspamd-7d0cad988cf39294f629045a9b72928df1ecad79.tar.gz
rspamd-7d0cad988cf39294f629045a9b72928df1ecad79.zip
[Minor] Allow session-less lua dns requests
Diffstat (limited to 'src/lua/lua_dns.c')
-rw-r--r--src/lua/lua_dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_dns.c b/src/lua/lua_dns.c
index 6dab3c285..591147417 100644
--- a/src/lua/lua_dns.c
+++ b/src/lua/lua_dns.c
@@ -324,7 +324,7 @@ lua_dns_resolver_resolve_common (lua_State *L,
session = task->s;
}
- if (pool != NULL && session != NULL && to_resolve != NULL && cbref != -1) {
+ if (pool != NULL && to_resolve != NULL && cbref != -1) {
cbdata = rspamd_mempool_alloc0 (pool, sizeof (struct lua_dns_cbdata));
cbdata->L = L;
cbdata->resolver = resolver;