]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_macro: Fix locking around datastore access
authorMatthew Fredrickson <matt@fredricknet.net>
Mon, 21 Aug 2023 16:02:57 +0000 (11:02 -0500)
committerAsterisk Development Team <asteriskteam@digium.com>
Wed, 6 Sep 2023 16:56:00 +0000 (16:56 +0000)
commit8bf9b1d9665ee5039d48a3d7273ab6cc79752650
tree9845ab89215466d0605f42615617a81bc91529a1
parent65082ae112ea46a76f29c8735709e053c80d1c66
app_macro: Fix locking around datastore access

app_macro sometimes would crash due to datastore list corruption on the
channel because of lack of locking around find and create process for
the macro datastore. This patch locks the channel lock prior to protect
against this problem.

Resolves: #265
(cherry picked from commit 9a28531362d747fd9dd987ad8328fc7917e7995e)
apps/app_macro.c