]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a situation where the DAHDI channel private structure lock was not unlocked when...
authorJoshua Colp <jcolp@digium.com>
Fri, 17 Apr 2009 14:25:57 +0000 (14:25 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 17 Apr 2009 14:25:57 +0000 (14:25 +0000)
(issue AST-210)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@188937 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 76c701a91e6e5c600da0f0186e3bd32cdaa1a258..9ced0cc6cd81c7bc6b9aab567306355ff489ed0f 100644 (file)
@@ -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 */