summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2009-05-28 18:48:56 +0000
committerMark Michelson <mmichelson@digium.com>2009-05-28 18:48:56 +0000
commit08f0ec4e8ed8d98625dc5f4d7dcacd75460f7385 (patch)
treed8a29c574b754bce4cd0f2fe25adc5c66283c669 /channels
parente9e4efdcb6acf6b81891d686ca74e941bbcce5eb (diff)
Add missing lock to local_indicate function for connected line frames.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_local.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 7e7ef3c4e..6f910931e 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -416,6 +416,7 @@ static int local_indicate(struct ast_channel *ast, int condition, const void *da
* we need to transmit the collected connected line information instead of whatever
* happens to be in this control frame. The same applies for redirecting information, which
* is why it is handled here as well.*/
+ ast_mutex_lock(&p->lock);
isoutbound = IS_OUTBOUND(ast, p);
if (isoutbound) {
this_channel = p->chan;