From: Vsevolod Stakhov Date: Tue, 8 Nov 2016 13:21:07 +0000 (+0300) Subject: [Fix] Fix lua tcp module by saving `do_read` in callback data X-Git-Tag: 1.4.0~98 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1e11007cf4fcccc21792d9cd917b3d31aeccfeab;p=rspamd.git [Fix] Fix lua tcp module by saving `do_read` in callback data --- 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);