]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_local:check_bridge() misplaced misplaced ast_mutex_unlock
authorAlec L Davis <sivad.a@paradise.net.nz>
Mon, 25 Apr 2011 07:06:29 +0000 (07:06 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Mon, 25 Apr 2011 07:06:29 +0000 (07:06 +0000)
if !p->chan->_bridge->_softhangup path isn't followed, brigde remains locked.

(closes issue #19176)
Reported by: alecdavis
Patches:
      bug19176.diff.txt uploaded by alecdavis (license 585)

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

channels/chan_local.c

index 26b9f51f09c5b21b0032a1e8971c6d8f4f9b0b8f..14a044f6d70256d64d41980dd0f9268add33ebb6 100644 (file)
@@ -371,8 +371,8 @@ static void check_bridge(struct local_pvt *p)
                                        }
                                        ast_mutex_unlock(&p->owner->lock);
                                }
-                               ast_mutex_unlock(&(p->chan->_bridge)->lock);
                        }
+                       ast_mutex_unlock(&(p->chan->_bridge)->lock);
                }
        }
 }