aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_buffer.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-08-13 20:40:50 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-08-13 20:40:50 +0400
commitcd85daafe383de85701d726461e3e464f7f70249 (patch)
tree5216e42fc3ae75d08ac653870b3e82f7f482ea6c /src/lua/lua_buffer.c
parentac13c4d304d190ead195f12a2db74ae08a91ed6b (diff)
downloadrspamd-cd85daafe383de85701d726461e3e464f7f70249.tar.gz
rspamd-cd85daafe383de85701d726461e3e464f7f70249.zip
* Add DNS resolver lua bindings.
Make lua http library working without task object. Fix a problem with resolver in lua_worker. Added some utility functions to lua api.
Diffstat (limited to 'src/lua/lua_buffer.c')
-rw-r--r--src/lua/lua_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_buffer.c b/src/lua/lua_buffer.c
index 9c18ef5cf..43df6a6d8 100644
--- a/src/lua/lua_buffer.c
+++ b/src/lua/lua_buffer.c
@@ -100,7 +100,7 @@ lua_io_read_cb (f_str_t * in, void *arg)
msg_info ("call to session finalizer failed: %s", lua_tostring (cbdata->L, -1));
}
- res = lua_toboolean (cbdata->L, 1);
+ res = lua_toboolean (cbdata->L, -1);
lua_pop (cbdata->L, 1);
if (need_unlock) {
@@ -133,7 +133,7 @@ lua_io_write_cb (void *arg)
msg_info ("call to session finalizer failed: %s", lua_tostring (cbdata->L, -1));
}
- res = lua_toboolean (cbdata->L, 1);
+ res = lua_toboolean (cbdata->L, -1);
lua_pop (cbdata->L, 1);
if (need_unlock) {