aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_tcp.c')
-rw-r--r--src/lua/lua_tcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c
index 23140b79a..c80c311f8 100644
--- a/src/lua/lua_tcp.c
+++ b/src/lua/lua_tcp.c
@@ -199,7 +199,7 @@ lua_tcp_push_data (struct lua_tcp_cbdata *cbd, const guint8 *str, gsize len)
rspamd_lua_setclass (cbd->L, "rspamd{text}", -1);
t->start = (const gchar *)str;
t->len = len;
- t->own = FALSE;
+ t->flags = 0;
/* Connection */
pcbd = lua_newuserdata (cbd->L, sizeof (*pcbd));
*pcbd = cbd;
@@ -467,9 +467,9 @@ lua_tcp_arg_toiovec (lua_State *L, gint pos, rspamd_mempool_t *pool,
vec->iov_base = (void *)t->start;
vec->iov_len = t->len;
- if (t->own) {
+ if (t->flags & RSPAMD_TEXT_FLAG_OWN) {
/* Steal ownership */
- t->own = FALSE;
+ t->flags = 0;
rspamd_mempool_add_destructor (pool, g_free, (void *)t->start);
}
}