diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-21 12:45:29 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-21 12:45:29 +0000 |
commit | ae1869659867d4d6325911db6a4288fa26e5b4a9 (patch) | |
tree | 00edc8a5baa3205727ebf611e27e80c91773fe74 | |
parent | 57deea9d3eb3825730bb29b64b8d97f5370c1ba5 (diff) | |
download | rspamd-ae1869659867d4d6325911db6a4288fa26e5b4a9.tar.gz rspamd-ae1869659867d4d6325911db6a4288fa26e5b4a9.zip |
Fix PTR resolving in lua resolver.
-rw-r--r-- | src/lua/lua_dns.c | 1 | ||||
-rw-r--r-- | src/plugins/lua/once_received.lua | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_dns.c b/src/lua/lua_dns.c index 17620a289..d06dc46fa 100644 --- a/src/lua/lua_dns.c +++ b/src/lua/lua_dns.c @@ -237,6 +237,7 @@ lua_dns_resolver_resolve_common (lua_State *L, return 1; } cbdata->to_resolve = rspamd_mempool_strdup (pool, ptr_str); + to_resolve = cbdata->to_resolve; free (ptr_str); } lua_pushvalue (L, first + 3); diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua index 2c01eb037..3631aaacc 100644 --- a/src/plugins/lua/once_received.lua +++ b/src/plugins/lua/once_received.lua @@ -55,7 +55,7 @@ local function check_quantity_received (task) else task:insert_result(symbol_strict, 1) end - return + return end local i = true |