]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: lua: txn:done() still causes a segfault in TCP mode
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2015 07:40:04 +0000 (09:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2015 07:40:04 +0000 (09:40 +0200)
We must not dereference s->txn to get the channel, as it doesn't
exist in TCP mode.

src/hlua.c

index b88f5e4696fac804e6a5ecf6f88abe25fac67bb8..e98a28d1200276f47b1d37ee2d2b1bceeb326c5d 100644 (file)
@@ -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;