]> 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)
committerMatthew Fredrickson <matt@fredricknet.net>
Tue, 22 Aug 2023 13:29:47 +0000 (13:29 +0000)
commitec4e0340ceb5bf459770280d1d1f4580ecb0df86
tree2fc6119e1626e1829dfdd5c6ca22c0ef998fac13
parent3f80f9ce0be17cb1467f2b7100fa45dc84822347
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
apps/app_macro.c