mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-29 17:51:22 +02:00
BUG/MINOR: channel: initialize xfer_small/xfer_large on new buffers
These ones are only reset during transfers. There is a low but non-null risk that a first full read causes the previous value to be reused and immediately to immediately set the CF_STREAMER flag. The impact is only to increase earlier than expected the SSL record size and to use splice(). This bug was already present in 1.4, so a backport is possible.
This commit is contained in:
parent
852745d548
commit
8f39dcdc8d
@ -55,6 +55,7 @@ static inline void channel_init(struct channel *chn)
|
||||
chn->buf->i = 0;
|
||||
chn->buf->p = chn->buf->data;
|
||||
chn->to_forward = 0;
|
||||
chn->xfer_small = chn->xfer_large = 0;
|
||||
chn->total = 0;
|
||||
chn->pipe = NULL;
|
||||
chn->analysers = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user