mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-29 18:18:59 -04:00
BUG/MINOR: stream: further protect stream_dump() against incomplete sessions
As found by Coverity in issue #2273, the fix in commit e64bccab2 ("BUG/MINOR:
stream: protect stream_dump() against incomplete streams") was still not
enough, as scf/scb are still dereferenced to dump their flags and states.
This should be backported to 2.8.
This commit is contained in:
parent
3939e39479
commit
8547f5cfa2
1 changed files with 2 additions and 1 deletions
|
|
@ -2861,7 +2861,8 @@ void stream_dump(struct buffer *buf, const struct stream *s, const char *pfx, ch
|
|||
(s->txn ? h1_msg_state_str(s->txn->req.msg_state): "-"), (s->txn ? s->txn->req.flags : 0),
|
||||
(s->txn ? h1_msg_state_str(s->txn->rsp.msg_state): "-"), (s->txn ? s->txn->rsp.flags : 0), eol,
|
||||
pfx, req->flags, req->analysers, res->flags, res->analysers, eol,
|
||||
pfx, scf, sc_state_str(scf->state), scf->flags, scb, sc_state_str(scb->state), scb->flags, eol,
|
||||
pfx, scf, scf ? sc_state_str(scf->state) : 0, scf ? scf->flags : 0,
|
||||
scb, scb ? sc_state_str(scb->state) : 0, scb ? scb->flags : 0, eol,
|
||||
pfx, acf, acf ? acf->st0 : 0, acb, acb ? acb->st0 : 0, eol,
|
||||
pfx, cof, cof ? cof->flags : 0, conn_get_mux_name(cof), cof?cof->ctx:0, conn_get_xprt_name(cof),
|
||||
cof ? cof->xprt_ctx : 0, conn_get_ctrl_name(cof), conn_fd(cof), eol,
|
||||
|
|
|
|||
Loading…
Reference in a new issue