mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-13 09:11:06 +00:00
CLEANUP: cli: initialize the whole appctx->ctx, not just the stats part
Historically the CLI was a second access to the stats and we've continued to initialize only the stats part when initializing the CLI. Let's make sure we do that on the whole ctx instead. It's probably not more needed at all nowadays but better stay on the safe side.
This commit is contained in:
parent
ce9123c005
commit
7bf20caacc
@ -902,8 +902,8 @@ static void cli_io_handler(struct appctx *appctx)
|
||||
|
||||
while (1) {
|
||||
if (appctx->st0 == CLI_ST_INIT) {
|
||||
/* Stats output not initialized yet */
|
||||
memset(&appctx->ctx.stats, 0, sizeof(appctx->ctx.stats));
|
||||
/* CLI/stats not initialized yet */
|
||||
memset(&appctx->ctx, 0, sizeof(appctx->ctx));
|
||||
/* reset severity to default at init */
|
||||
appctx->cli_severity_output = bind_conf->severity_output;
|
||||
appctx->st0 = CLI_ST_GETREQ;
|
||||
|
Loading…
Reference in New Issue
Block a user