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.
This commit is contained in:
Willy Tarreau 2015-08-28 09:40:04 +02:00
parent fca4261dac
commit 0458b08a5a

View 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;