mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-27 12:56:09 -04:00
BUG/MINOR: prevent the dump of uninitialized vars
Some vars are not initialized when the dumps of variables are called. This patch prevent the dereferencement of uninitialized pointers.
This commit is contained in:
parent
85dc1d3995
commit
ac9d467c5e
1 changed files with 3 additions and 0 deletions
|
|
@ -4107,6 +4107,9 @@ static int stats_dump_li_stats(struct stream_interface *si, struct proxy *px, st
|
|||
struct appctx *appctx = __objt_appctx(si->end);
|
||||
struct chunk *out = get_trash_chunk();
|
||||
|
||||
if (!l->counters)
|
||||
return 0;
|
||||
|
||||
chunk_reset(out);
|
||||
memset(&stats, 0, sizeof(stats));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue