]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: backend: always call si_detach_endpoint() on async connection failure
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Jan 2019 15:33:35 +0000 (16:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Jan 2019 15:33:35 +0000 (16:33 +0100)
commitd822013f45dea36d23a01a1d2f3680525fbc5e95
treecaff2c7b262f10cacdb7ac7d9b7406d7b8811930
parent9ef5155ba6b7455d3c8c88bf661aa35dd0096003
BUG/MEDIUM: backend: always call si_detach_endpoint() on async connection failure

In case an asynchronous connection (ALPN) succeeds but the mux fails to
attach, we must release the stream interface's endpoint, otherwise we
leave the stream interface with an endpoint pointing to a freed connection
with si_ops == si_conn_ops, and sess_update_st_cer() calls si_shutw() on
it, causing it to crash.

This must be backported to 1.9 only.
src/backend.c