From: Vsevolod Stakhov Date: Fri, 28 Apr 2017 09:07:45 +0000 (+0100) Subject: [Minor] Allow session-less lua dns requests X-Git-Tag: 1.5.7~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a113a7d005bc04c5a855c267df523b8db2d18a58;p=rspamd.git [Minor] Allow session-less lua dns requests --- 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;