summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2009-04-10 18:56:52 +0000
committerMark Michelson <mmichelson@digium.com>2009-04-10 18:56:52 +0000
commit86d6af95ef3ab5d58118ed0ac7455acdd6267e8a (patch)
tree155c7856a197e51f2a87ad4bd3096f4a553d5df9 /channels
parentaaf15662228fbfeeb6437957516f4740dd4c0af1 (diff)
Indicating connected line or redirecting updates were missing a call to lock the local_pvt.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187830 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 89a77d838..8ecdf6953 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -433,6 +433,7 @@ static int local_indicate(struct ast_channel *ast, int condition, const void *da
}
f.subclass = condition;
f.data.ptr = frame_data;
+ ast_mutex_lock(&p->lock);
if (!(res = local_queue_frame(p, isoutbound, &f, ast, 1))) {
ast_mutex_unlock(&p->lock);
}