From a113a7d005bc04c5a855c267df523b8db2d18a58 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 28 Apr 2017 10:07:45 +0100 Subject: [PATCH] [Minor] Allow session-less lua dns requests --- src/lua/lua_dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5