From: Willy Tarreau Date: Fri, 12 Apr 2024 10:01:31 +0000 (+0200) Subject: BUG/MEDIUM: peers/trace: fix crash when listing event types X-Git-Tag: v3.0-dev8~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8c2f5c586cff21448c510ea40dc50b3e412294f;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: peers/trace: fix crash when listing event types Sending "trace peers event" on the CLI crashes because the event list in the peers is not finished. This was introduced in 2.4 by commit d865935f32 ("MINOR: peers: Add traces to peer_treat_updatemsg().") so this must be backported to 2.4. --- diff --git a/src/peers.c b/src/peers.c index 1182c2117a..1e9a690f3f 100644 --- a/src/peers.c +++ b/src/peers.c @@ -334,6 +334,7 @@ static const struct trace_event peers_trace_events[] = { { .mask = PEERS_EV_SESSREL, .name = "sessrl", .desc = "peer session releasing" }, #define PEERS_EV_PROTOERR (1 << 6) { .mask = PEERS_EV_PROTOERR, .name = "protoerr", .desc = "protocol error" }, + { } }; static const struct name_desc peers_trace_lockon_args[4] = {