]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: checks: Be sure we have a mux if we created a cs.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 1 Dec 2017 21:04:05 +0000 (22:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Dec 2017 07:13:22 +0000 (08:13 +0100)
commit6377a0004fa25cc58a0e338a13012d3cf9416ef7
tree2f0bd2f13242d0ffe36300be7ca0f7e8ea38d25e
parent57dc2830144bcd5b8cd16beb16679689d6f9f711
BUG/MEDIUM: checks: Be sure we have a mux if we created a cs.

In connect_conn_chk(), there were one case we could return with a new
conn_stream created, but no mux attached. With no mux, cs_destroy() would
segfault. Fix that by setting the mux before we can fail.

This should be backported to 1.8.
src/checks.c