]> 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:28 +0000 (16:58 -0500)
commitb7c22054021cb68fcbd2bc17765e9166bc237629
tree64957d7249ab212d03253a4a9176fdaf1cdfd98f
parent447f6cc37aa1406b9e092076500b4e1426aea635
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