BUG/MINOR: cli: fix pointer size when reporting data/transport layer name
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Nov 2016 14:21:26 +0000 (15:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Nov 2016 14:21:26 +0000 (15:21 +0100)
commit578fa0259f59736496a5f227bbadd2a936dc786f
tree6ff0815c5d52433e68505534e3e6ae6d696a4eb0
parent327298c21528f7413798b9ef0b52a182d52379c6
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.
src/dumpstats.c