]> source.dussan.org Git - rspamd.git/commitdiff
Fix PTR resolving in lua resolver.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 21 Nov 2014 12:45:29 +0000 (12:45 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 21 Nov 2014 12:45:29 +0000 (12:45 +0000)
src/lua/lua_dns.c
src/plugins/lua/once_received.lua

index 17620a2892a547fc1fb682c2d69bf996523139e6..d06dc46fa19872d59ced2f713e78813247548901 100644 (file)
@@ -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);
index 2c01eb0375ae1324285e064eed579bf6be2254ac..3631aaacc8d5557c2065fa2d458dd3e65ab01ccb 100644 (file)
@@ -55,7 +55,7 @@ local function check_quantity_received (task)
                                else
                                        task:insert_result(symbol_strict, 1)
                                end
-                return
+                   return
                        end
 
                        local i = true