[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:
Willy Tarreau 2011-08-24 08:23:34 +02:00
parent c9ebc446b8
commit e17a8d02d9

View File

@ -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.state = STAT_ST_INIT;
si->applet.ctx.table.target = NULL;
si->applet.ctx.table.proxy = NULL;
si->applet.ctx.table.entry = NULL;
if (show)