]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux-h2: use the correct offset for the HTX start line
authorWilly Tarreau <w@1wt.eu>
Thu, 6 Dec 2018 13:07:27 +0000 (14:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Dec 2018 13:07:27 +0000 (14:07 +0100)
commit8e162ee1f9208c87b0f0757f26dc2c53a5371ec4
tree67d9e1ea323634225c7fac665225a6b080f613cb
parentb2e841681a920fa6b6b6f51c4b8ffd6c66b2e719
BUG/MEDIUM: mux-h2: use the correct offset for the HTX start line

Due to a thinko, I used sl_off as the start line index number but it's
not it, it's its offset. The first index is obtained using htx_get_head(),
and the start line is obtained using htx_get_sline(). This caused crashes
to happen when forwarding HTX traffic via the H2 mux once the HTX buffer
started to wrap.

No backport is needed.
src/mux_h2.c