mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 08:24:42 +00: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
@ -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 New Issue
Block a user