mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-10 09:21:35 -04:00
BUG/MEDIUM: mux_pt: Don't forget to unsubscribe() on attach.
In the mux_pt, when we're attaching a new conn_stream, don't forget to unsubscribe from the connection. Failure to do so may lead to the mux_pt freeing the connection while the conn_stream can still want to access it.
This commit is contained in:
parent
a3fe1bb901
commit
1ced485b29
1 changed files with 1 additions and 0 deletions
|
|
@ -142,6 +142,7 @@ static struct conn_stream *mux_pt_attach(struct connection *conn)
|
|||
struct conn_stream *cs;
|
||||
struct mux_pt_ctx *ctx = conn->mux_ctx;
|
||||
|
||||
conn->xprt->unsubscribe(conn, SUB_CAN_RECV, &ctx->wait_event);
|
||||
cs = cs_new(conn);
|
||||
if (!cs)
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Reference in a new issue