]> 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:58 +0000 (19:27 -0500)
commit62881c668b0e7cb097e2c36f0e88d18dcd1aa38d
treea440c33f925a416599dd3122e48bd99514b02f36
parent8afb313a4307dbff8849b036703775d8770d21a9
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