]> 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 14:58:22 +0000 (10:58 -0400)
committerKevin Harwell <kharwell@digium.com>
Tue, 11 Aug 2020 22:19:01 +0000 (17:19 -0500)
commit7379a544242498d2fe99e22372bcd75100dd34c7
treee4642df29d47053f080dd67995f7407cbcc3e712
parent46fb9fb663102c742266c2d165d82f17cd69df73
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