mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02: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
@ -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…
x
Reference in New Issue
Block a user