From 40142d2b950a3be21cdef2c5fc35c15ded0b7e0b Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 30 Jul 2024 10:43:55 +0200 Subject: [PATCH] BUILD: mux-pt: Use the right name for the sedesc variable A typo was introduced in 760d26a86 ("BUG/MEDIUM: mux-pt/mux-h1: Release the pipe on connection error on sending path"). The sedesc variable is 'sd', not 'se'. This patch must be backported with the commit above. (cherry picked from commit d9f41b1d6e811022372ce541e67b047bd18630a9) Signed-off-by: Christopher Faulet --- src/mux_pt.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mux_pt.c b/src/mux_pt.c index 7a7833d..020f095 100644 --- a/src/mux_pt.c +++ b/src/mux_pt.c @@ -627,9 +627,9 @@ static size_t mux_pt_done_ff(struct stconn *sc) if (conn_xprt_read0_pending(conn)) se_fl_set(ctx->sd, SE_FL_EOS); se_fl_set_error(ctx->sd); - if (se->iobuf.pipe) { - put_pipe(se->iobuf.pipe); - se->iobuf.pipe = NULL; + if (sd->iobuf.pipe) { + put_pipe(sd->iobuf.pipe); + sd->iobuf.pipe = NULL; } TRACE_DEVEL("error on connection", PT_EV_TX_DATA|PT_EV_CONN_ERR, conn, sc); } @@ -746,9 +746,9 @@ static int mux_pt_resume_fastfwd(struct stconn *sc, unsigned int flags) if (conn_xprt_read0_pending(conn)) se_fl_set(ctx->sd, SE_FL_EOS); se_fl_set_error(ctx->sd); - if (se->iobuf.pipe) { - put_pipe(se->iobuf.pipe); - se->iobuf.pipe = NULL; + if (sd->iobuf.pipe) { + put_pipe(sd->iobuf.pipe); + sd->iobuf.pipe = NULL; } TRACE_DEVEL("error on connection", PT_EV_TX_DATA|PT_EV_CONN_ERR, conn, sc); } -- 1.7.10.4