mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-02 15:49:39 -04:00
BUG/MEDIUM: buffers: fix bi_putchr() to correctly advance the pointer
bi_putchr() failed to move the buffer pointer forward. The only user was the peer handler which was broken, it failed to sync. Thanks to Herv Commowick for reporting the issue.
This commit is contained in:
parent
fa6bac6ec3
commit
743a2d3e14
1 changed files with 1 additions and 3 deletions
|
|
@ -154,9 +154,7 @@ int bi_putchr(struct buffer *buf, char c)
|
|||
if (buf->to_forward >= 1) {
|
||||
if (buf->to_forward != BUF_INFINITE_FORWARD)
|
||||
buf->to_forward--;
|
||||
buf->o++;
|
||||
buf->i--;
|
||||
buf->flags &= ~BF_OUT_EMPTY;
|
||||
b_adv(buf, 1);
|
||||
}
|
||||
|
||||
buf->total++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue