mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 08:20:19 -05:00
BUG/MEDIUM: http: do not dereference strm_li(stream)
Some streams do not have a listener (eg: Lua's cosockets) so let's check for this. For now this problem cannot happen but it's definitely unsafe.
This commit is contained in:
parent
f1e0212d54
commit
c29d0cda4b
1 changed files with 1 additions and 1 deletions
|
|
@ -5284,7 +5284,7 @@ void http_end_txn_clean_session(struct stream *s)
|
|||
si_idle_conn(&s->si[1], &srv->idle_conns);
|
||||
}
|
||||
|
||||
s->req.analysers = strm_li(s)->analysers;
|
||||
s->req.analysers = strm_li(s) ? strm_li(s)->analysers : 0;
|
||||
s->res.analysers = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue