]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Indicating connected line or redirecting updates were missing a call to lock the...
authorMark Michelson <mmichelson@digium.com>
Fri, 10 Apr 2009 18:56:52 +0000 (18:56 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 10 Apr 2009 18:56:52 +0000 (18:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187830 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index 89a77d838a5f4b93d0925da0655e4d52d2b1f2db..8ecdf6953652c130f2d3624c4b65ac9a06373838 100644 (file)
@@ -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);
                        }