]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_prometheus: Do not crash on invisible bridges
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Tue, 20 Sep 2022 00:53:18 +0000 (08:53 +0800)
committerHolger Hans Peter Freyther <automatic@freyther.de>
Tue, 27 Sep 2022 00:27:50 +0000 (19:27 -0500)
commit8d6fdf9c3adede201f0ef026dab201b3a37b26b6
treede1a09ace3148d3702aa7fdfbac26ea9a7d69819
parent7fdc6334dcfeffa50de9c5ebc1b415fdac9279ab
res_prometheus: Do not crash on invisible bridges

Avoid crashing by skipping invisible bridges and checking the
snapshot for a null pointer. In effect this is how the bridges
are enumerated in res/ari/resource_bridges.c already.

ASTERISK-30239
ASTERISK-30237

Change-Id: I58ef9f44036feded5966b5fc70ae754f8182883d
res/prometheus/bridges.c