mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-26 16:49:47 -04:00
BUG/MINOR: stream: Don't use input buffer after the ownership xfer
At the end of stream_new(), once the input buffer is transfer to the request
channel, it must not be used anymore. The previous patch (16df178b6 "BUG/MEDIUM:
stream: Xfer the input buffer to a fully created stream") was pushed to quickly.
No backport needed.
This commit is contained in:
parent
16df178b6e
commit
c43fca0139
1 changed files with 1 additions and 1 deletions
|
|
@ -526,7 +526,7 @@ struct stream *stream_new(struct session *sess, enum obj_type *origin, struct bu
|
|||
*/
|
||||
s->req.buf = *input;
|
||||
*input = BUF_NULL;
|
||||
s->req.total = (IS_HTX_STRM(s) ? htxbuf(input)->data : b_data(input));
|
||||
s->req.total = (IS_HTX_STRM(s) ? htxbuf(&s->req.buf)->data : b_data(&s->req.buf));
|
||||
s->req.flags |= (s->req.total ? CF_READ_PARTIAL : 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue