diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-11-30 17:41:44 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-11-30 17:41:44 +0400 |
commit | 71defe8523b86a0c0ac898f5512f70ab74df15c7 (patch) | |
tree | 3717b4864bbc9bdf82d3fc0a73cf97f85c175cb2 /src/lua | |
parent | 2f4c19cfcafd518f6327e583018d3acdcf000ec9 (diff) | |
download | rspamd-71defe8523b86a0c0ac898f5512f70ab74df15c7.tar.gz rspamd-71defe8523b86a0c0ac898f5512f70ab74df15c7.zip |
Fix to_resolve field filling in lua dns resolver.
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_dns.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_dns.c b/src/lua/lua_dns.c index 48b0b218f..306d15f85 100644 --- a/src/lua/lua_dns.c +++ b/src/lua/lua_dns.c @@ -198,6 +198,7 @@ lua_dns_resolver_resolve_common (lua_State *L, struct rspamd_dns_resolver *resol cbdata = memory_pool_alloc (pool, sizeof (struct lua_dns_cbdata)); cbdata->L = L; cbdata->resolver = resolver; + cbdata->to_resolve = memory_pool_strdup (pool, to_resolve); lua_pushvalue (L, 5); cbdata->cbref = luaL_ref (L, LUA_REGISTRYINDEX); if (type == DNS_REQUEST_PTR) { |