aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_tcp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-20 12:03:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-20 12:03:46 +0100
commit2dafca29378d0bd77d972f87bf2c8999e8fec14f (patch)
treeff0dbf619ffc8d82a4d1350212bfb66d5a69a410 /src/lua/lua_tcp.c
parent92496d02007139d676a9ca4a35f288b368658be4 (diff)
downloadrspamd-2dafca29378d0bd77d972f87bf2c8999e8fec14f.tar.gz
rspamd-2dafca29378d0bd77d972f87bf2c8999e8fec14f.zip
Allow owning lua_text.
Diffstat (limited to 'src/lua/lua_tcp.c')
-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 9d204daa8..67110c3ed 100644
--- a/src/lua/lua_tcp.c
+++ b/src/lua/lua_tcp.c
@@ -150,6 +150,7 @@ lua_tcp_push_data (struct lua_tcp_cbdata *cbd, const gchar *str, gsize len)
rspamd_lua_setclass (cbd->L, "rspamd{text}", -1);
t->start = str;
t->len = len;
+ t->own = FALSE;
if (lua_pcall (cbd->L, 2, 0, 0) != 0) {
msg_info ("callback call failed: %s", lua_tostring (cbd->L, -1));