mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-29 18:18:59 -04:00
BUG/MEDIUM: stats: properly initialize the scope before dumping stats
Issuing a "show sess all" prior to a "show stat" on the CLI results in no proxy being dumped because the scope_len union member was not properly reinitialized. This fix must be backported into 1.5.
This commit is contained in:
parent
aee9314e71
commit
6bcb95da5b
1 changed files with 2 additions and 0 deletions
|
|
@ -1090,6 +1090,8 @@ static int stats_sock_parse_request(struct stream_interface *si, char *line)
|
|||
arg++;
|
||||
}
|
||||
|
||||
appctx->ctx.stats.scope_str = 0;
|
||||
appctx->ctx.stats.scope_len = 0;
|
||||
appctx->ctx.stats.flags = 0;
|
||||
if (strcmp(args[0], "show") == 0) {
|
||||
if (strcmp(args[1], "stat") == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue