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.
(cherry picked from commit d8c2f5c586cff21448c510ea40dc50b3e412294f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 42dc35988e4aba7d84d2284fc014f2fd8b47ce0b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 9c407e4079ef5ed1c3eff397ee6c83174392f085)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit e02745df14b91790fefef8f0293907f25ac9fe9b)
Signed-off-by: Amaury Denoyelle <adenoyelle@haproxy.com>
diff --git a/src/peers.c b/src/peers.c
index b92d131..1d316e7 100644
--- a/src/peers.c
+++ b/src/peers.c
@@ -325,6 +325,7 @@
{ .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] = {