]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: H1: When upgrading, make sure we don't free the buffer too early.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 7 Jun 2019 16:08:17 +0000 (18:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Jun 2019 17:37:21 +0000 (19:37 +0200)
commit6c7fe5c3700fac7cc945b2b756df30874cbf77a6
tree25c1dd487b82360148d093d6b56b5979d5be0c82
parent9faebe34cdbf3fcc0e23936aefbbdfa493997b12
BUG/MEDIUM: H1: When upgrading, make sure we don't free the buffer too early.

In h1_release(), when we want to upgrade the mux to h2, make sure we set
h1c->ibuf to BUF_NULL before calling conn_upgrade_mux_fe().
If the upgrade is successful, the buffer will be provided to the new mux,
h1_release() will be called recursively, it will so try to free h1c->ibuf,
and freeing the buffer we just provided to the new mux would be unfortunate.
src/mux_h1.c