From: Willy Tarreau Date: Fri, 28 Aug 2015 07:40:04 +0000 (+0200) Subject: BUG/MEDIUM: lua: txn:done() still causes a segfault in TCP mode X-Git-Tag: v1.6-dev4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0458b08a5a96be13d433319c6ac1fc20b698167b;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/hlua.c b/src/hlua.c index b88f5e4696..e98a28d120 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;