From: Willy Tarreau Date: Sat, 16 May 2026 18:28:16 +0000 (+0200) Subject: BUG/MINOR: session/trace: use distinct flags for SESS_EV_END and _ERR X-Git-Tag: v3.4-dev13~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=015933794ec8a3a9fd86710482538ccaf51550c7;p=thirdparty%2Fhaproxy.git BUG/MINOR: session/trace: use distinct flags for SESS_EV_END and _ERR Session traces were brought in 3.1 by commit abb07af67 ("MINOR: session/trace: enable very minimal session tracing") though there was an issue, because SESS_EV_END and SESS_EV_ERR have the same value (it's a copy-paste mistake). This can be backported to 3.2. --- diff --git a/src/session.c b/src/session.c index 0436671c5..a44237313 100644 --- a/src/session.c +++ b/src/session.c @@ -39,7 +39,7 @@ static const struct trace_event sess_trace_events[] = { { .mask = SESS_EV_NEW, .name = "sess_new", .desc = "new session creation" }, #define SESS_EV_END (1ULL << 1) { .mask = SESS_EV_END, .name = "sess_end", .desc = "session termination" }, -#define SESS_EV_ERR (1ULL << 1) +#define SESS_EV_ERR (1ULL << 2) { .mask = SESS_EV_ERR, .name = "sess_err", .desc = "session error" }, { } };