From 0458b08a5a96be13d433319c6ac1fc20b698167b Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 28 Aug 2015 09:40:04 +0200 Subject: [PATCH] BUG/MEDIUM: lua: txn:done() still causes a segfault in TCP mode We must not dereference s->txn to get the channel, as it doesn't exist in TCP mode. --- src/hlua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hlua.c b/src/hlua.c index b88f5e469..e98a28d12 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -3664,7 +3664,7 @@ __LJMP static int hlua_txn_done(lua_State *L) channel_auto_close(oc); channel_shutr_now(oc); - htxn->s->txn->req.chn->analysers = 0; + ic->analysers = 0; WILL_LJMP(hlua_done(L)); return 0;