From: Remi Tricot-Le Breton Date: Mon, 17 Aug 2026 15:48:09 +0000 (+0200) Subject: BUG/MINOR: conn: Do not check 'sess_el' list on frontend connections in __trace_enabled X-Git-Tag: v3.5-dev5~27 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=ad4cbb634d0438d16996ad4454d627c75b918fae;p=haproxy.git BUG/MINOR: conn: Do not check 'sess_el' list on frontend connections in __trace_enabled When called on a frontend connection, the 'sess_el' list that is checked in '__trace_enabled' was never initialized (see 'conn_backend_init' and 'conn_frontend_init'). This patch can be backported to all stable branches. --- diff --git a/src/trace.c b/src/trace.c index 9e66bed14..c7570f726 100644 --- a/src/trace.c +++ b/src/trace.c @@ -151,7 +151,7 @@ int __trace_enabled(enum trace_level level, uint64_t mask, struct trace_source * #endif if (!ctx.sess && ctx.strm) ctx.sess = ctx.strm->sess; - else if (!ctx.sess && ctx.conn && LIST_INLIST(&ctx.conn->sess_el)) + else if (!ctx.sess && ctx.conn && conn_is_back(ctx.conn) && LIST_INLIST(&ctx.conn->sess_el)) ctx.sess = ctx.conn->owner; else if (!ctx.sess && ctx.check) ctx.sess = ctx.check->sess;