summaryrefslogtreecommitdiffstats
path: root/chan_lcr.c
diff options
context:
space:
mode:
authorAndreas Eversberg2010-04-30 13:29:15 +0200
committerAndreas Eversberg2010-04-30 13:29:15 +0200
commit00c52acce5e7f6b31822e81e638348eb528f4065 (patch)
tree56656abdb427fb55766675d137557be0825a7790 /chan_lcr.c
parentfix last remnant of "extern" vs. incorrect "external" confusion, correct spel... (diff)
downloadlcr-00c52acce5e7f6b31822e81e638348eb528f4065.tar.gz
lcr-00c52acce5e7f6b31822e81e638348eb528f4065.tar.xz
lcr-00c52acce5e7f6b31822e81e638348eb528f4065.zip
Fixes a locking bug in chan_lcr. Thanx to WIMPy for that report.
modified: chan_lcr.c
Diffstat (limited to 'chan_lcr.c')
-rw-r--r--chan_lcr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index 72bca9f..2921b83 100644
--- a/chan_lcr.c
+++ b/chan_lcr.c
@@ -2417,7 +2417,7 @@ static int lcr_send_text(struct ast_channel *ast, const char *text)
memset(&newparam, 0, sizeof(union parameter));
strncpy(newparam.notifyinfo.display, text, sizeof(newparam.notifyinfo.display)-1);
send_message(MESSAGE_NOTIFY, call->ref, &newparam);
- ast_mutex_lock(&chan_lock);
+ ast_mutex_unlock(&chan_lock);
return 0;
}