]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 27 Sep 2022 11:16:23 +0000 (06:16 -0500)
commit02be2a5f1a99359f57ea88a9f9525cb7f9613890
tree45e48a0e21a92823f782b72e78b307f77741f217
parentaefb9fc2167fc36af90752313970714152641c24
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