]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Allow session-less lua dns requests
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 28 Apr 2017 09:07:45 +0000 (10:07 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 1 May 2017 13:04:37 +0000 (14:04 +0100)
src/lua/lua_dns.c

index 6dab3c285cd1b8520e6c986d99b81c84bfd870ac..591147417c9c4bd82f79ff603ffc4253bf89a35b 100644 (file)
@@ -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;