]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_musiconhold.c: Prevent crash with realtime MoH
authorSean Bright <sean.bright@gmail.com>
Thu, 6 Aug 2020 16:41:33 +0000 (12:41 -0400)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 11 Aug 2020 21:58:23 +0000 (16:58 -0500)
commit4167cc1be46f00200a6a590d33dc531826181302
tree9a33c812123c25b5813105c6325694311e60acd9
parentf606312b8f06452b4928da9f574174440a5164b7
res_musiconhold.c: Prevent crash with realtime MoH

The MoH class internal file vector is potentially being manipulated by
multiple threads at the same time without sufficient locking. Switch to
a reference counted list and operate on copies where necessary.

ASTERISK-28927 #close

Change-Id: I479c5dcf88db670956e8cac177b5826c986b0217
res/res_musiconhold.c