diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-13 17:36:01 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-13 17:36:01 +0400 |
commit | 97f8fe9a94ac2d4a7fcc2f516421053bf0c9a4e4 (patch) | |
tree | 654b536a1b8fefadfbab8028faebb7dea7e6bb44 /src/lua/lua_task.c | |
parent | a62ddb9677b3a017a7520c5e294c123687f74523 (diff) | |
download | rspamd-97f8fe9a94ac2d4a7fcc2f516421053bf0c9a4e4.tar.gz rspamd-97f8fe9a94ac2d4a7fcc2f516421053bf0c9a4e4.zip |
* Fix lua DNS code
* Decompress labels in DNS packets more strictly
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index a8258cb2a..71a36aba1 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -267,6 +267,7 @@ lua_dns_callback (struct rspamd_dns_reply *reply, gpointer arg) /* Actually this copy memory, so using of inet_ntoa is valid */ lua_pushstring (cd->L, inet_ntoa (ina)); lua_rawseti (cd->L, -2, ++i); + cur = g_list_next (cur); } lua_pushnil (cd->L); } @@ -277,6 +278,7 @@ lua_dns_callback (struct rspamd_dns_reply *reply, gpointer arg) elt = cur->data; lua_pushstring (cd->L, elt->ptr.name); lua_rawseti (cd->L, -2, ++i); + cur = g_list_next (cur); } lua_pushnil (cd->L); @@ -288,6 +290,7 @@ lua_dns_callback (struct rspamd_dns_reply *reply, gpointer arg) elt = cur->data; lua_pushstring (cd->L, elt->txt.data); lua_rawseti (cd->L, -2, ++i); + cur = g_list_next (cur); } lua_pushnil (cd->L); |