mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-08 06:17:26 +00:00
BUG/MINOR: cli: fix pointer size when reporting data/transport layer name
In dumpstats.c we have get_conn_xprt_name() and get_conn_data_name() to report the name of the data and transport layers used on a connection. But when the name is not known, its pointer is reported instead. But the static char used to report the pointer is too small as it doesn't leave room for '0x'. Fortunately all subsystems are known so we never trigger this case. This fix needs to be backported to 1.6 and 1.5.
This commit is contained in:
parent
327298c215
commit
578fa0259f
@ -5854,7 +5854,7 @@ static inline const char *get_conn_ctrl_name(const struct connection *conn)
|
||||
|
||||
static inline const char *get_conn_xprt_name(const struct connection *conn)
|
||||
{
|
||||
static char ptr[17];
|
||||
static char ptr[19];
|
||||
|
||||
if (!conn_xprt_ready(conn))
|
||||
return "NONE";
|
||||
@ -5872,7 +5872,7 @@ static inline const char *get_conn_xprt_name(const struct connection *conn)
|
||||
|
||||
static inline const char *get_conn_data_name(const struct connection *conn)
|
||||
{
|
||||
static char ptr[17];
|
||||
static char ptr[19];
|
||||
|
||||
if (!conn->data)
|
||||
return "NONE";
|
||||
|
Loading…
Reference in New Issue
Block a user