mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-26 00:01:45 +02:00
[BUG] possible crash in 'show table' on stats socket
Patch d5b9fd95 was missing an initialisation of "ctx.table.target", which caused "show table" to segfault if it was issued after a "show errors" (target pointer == -1).
This commit is contained in:
parent
c9ebc446b8
commit
e17a8d02d9
@ -617,6 +617,7 @@ static void stats_sock_table_request(struct stream_interface *si, char **args, b
|
|||||||
{
|
{
|
||||||
si->applet.ctx.table.data_type = -1;
|
si->applet.ctx.table.data_type = -1;
|
||||||
si->applet.state = STAT_ST_INIT;
|
si->applet.state = STAT_ST_INIT;
|
||||||
|
si->applet.ctx.table.target = NULL;
|
||||||
si->applet.ctx.table.proxy = NULL;
|
si->applet.ctx.table.proxy = NULL;
|
||||||
si->applet.ctx.table.entry = NULL;
|
si->applet.ctx.table.entry = NULL;
|
||||||
if (show)
|
if (show)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user