aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-08 16:21:07 +0300
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-08 16:21:07 +0300
commit1e11007cf4fcccc21792d9cd917b3d31aeccfeab (patch)
tree6860d09e49f763333059b892959bc7ccfc8f7264 /src
parent21ad2c88b1b38366f7e27e964603cafb5360d456 (diff)
downloadrspamd-1e11007cf4fcccc21792d9cd917b3d31aeccfeab.tar.gz
rspamd-1e11007cf4fcccc21792d9cd917b3d31aeccfeab.zip
[Fix] Fix lua tcp module by saving `do_read` in callback data
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c
index 63c9f8a07..7be257b51 100644
--- a/src/lua/lua_tcp.c
+++ b/src/lua/lua_tcp.c
@@ -758,6 +758,7 @@ lua_tcp_request (lua_State *L)
cbd->stop_pattern = stop_pattern;
cbd->connect_cb = conn_cbref;
cbd->in = g_byte_array_new ();
+ cbd->do_read = do_read;
rspamd_mempool_add_destructor (cbd->pool,
(rspamd_mempool_destruct_t)g_byte_array_unref,
cbd->in);