mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
BUG/MEDIUM: stream: Don't dereference s->txn when it is not there yet.
Test if s->txn is non-NULL before attempting to dereference it, it was lost during the transition to HTX.
This commit is contained in:
parent
174bfb163c
commit
1909f6de18
1 changed files with 4 additions and 2 deletions
|
|
@ -2204,7 +2204,8 @@ redo:
|
|||
* we simply reset msg->sov so that HTTP rewinding points to the
|
||||
* headers.
|
||||
*/
|
||||
s->txn->req.sov = s->txn->req.eoh + s->txn->req.eol - co_data(req);
|
||||
if (s->txn)
|
||||
s->txn->req.sov = s->txn->req.eoh + s->txn->req.eol - co_data(req);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2374,7 +2375,8 @@ redo:
|
|||
* we simply reset msg->sov so that HTTP rewinding points to the
|
||||
* headers.
|
||||
*/
|
||||
s->txn->rsp.sov = s->txn->rsp.eoh + s->txn->rsp.eol - co_data(res);
|
||||
if (s->txn)
|
||||
s->txn->rsp.sov = s->txn->rsp.eoh + s->txn->rsp.eol - co_data(res);
|
||||
}
|
||||
|
||||
/* if we have no analyser anymore in any direction and have a
|
||||
|
|
|
|||
Loading…
Reference in a new issue