]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: backend: check that the mux installed properly
authorWilly Tarreau <w@1wt.eu>
Wed, 3 Oct 2018 08:20:19 +0000 (10:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Oct 2018 08:24:05 +0000 (10:24 +0200)
commit33dd4ef81245bb868b22f99b9be45d0791131eec
tree3c62453082957e39c81a483d731d45fe54ffd4ee
parentf11ca5e7a43c772637018ec2ad981a9fd7d3816f
BUG/MINOR: backend: check that the mux installed properly

The return value from conn_install_mux() was not checked, so if an
inconsistency happens in the code, or a memory allocation fails while
initializing the mux, we can crash while using an uninitialized mux.
In practice the code inconsistency does not really happen since we
cannot configure such a situation, except during development, but
the out of memory condition could definitely happen.

This should be backported to 1.8 (the code is a bit different there,
there are two calls to conn_install_mux()).
src/backend.c