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.
This commit is contained in:
Willy Tarreau 2024-04-12 12:01:31 +02:00
parent 90efe8a877
commit d8c2f5c586

View File

@ -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] = {