aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-17 14:25:57 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-17 14:25:57 +0000
commitc0880504d52620bfc4ec3a9b306d292eadc6327f (patch)
treeeda43702764fe7c010fe1b95fbbe2bdbc202cefa /channels
parentd963ff583fbe40daed6b478c07191c786de6d976 (diff)
Fix a situation where the DAHDI channel private structure lock was not unlocked when it should have been.
(issue AST-210) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@188937 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_dahdi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 76c701a91..9ced0cc6c 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -9242,6 +9242,7 @@ static void *pri_dchannel(void *vpri)
if (pri->pvts[chanpos]->call == e->ring.call) {
ast_log(LOG_WARNING, "Duplicate setup requested on channel %d/%d already in use on span %d\n",
PRI_SPAN(e->ring.channel), PRI_CHANNEL(e->ring.channel), pri->span);
+ ast_mutex_unlock(&pri->pvts[chanpos]->lock);
break;
} else {
/* This is where we handle initial glare */