[asterisk-bugs] [Asterisk 0019176]: [patch] check_bridge(): misplaced ast_mutex_unlock

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 25 02:06:32 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19176 
====================================================================== 
Reported By:                alecdavis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19176
Category:                   Channels/chan_local
Reproducibility:            N/A
Severity:                   tweak
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-04-25 02:00 CDT
Last Modified:              2011-04-25 02:06 CDT
====================================================================== 
Summary:                    [patch] check_bridge(): misplaced ast_mutex_unlock
Description: 
<pre>
if (!ast_mutex_trylock(&(p->chan->_bridge)->lock)) {
  if (!p->chan->_bridge->_softhangup) {
    ....
    ast_mutex_unlock(&(p->chan->_bridge)->lock); <b><u> <<< WHAT </u></b>
  }
}</pre>
====================================================================== 

---------------------------------------------------------------------- 
 (0134065) svnbot (reporter) - 2011-04-25 02:06
 https://issues.asterisk.org/view.php?id=19176#c134065 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 315051

U   branches/1.4/channels/chan_local.c

------------------------------------------------------------------------
r315051 | alecdavis | 2011-04-25 02:06:30 -0500 (Mon, 25 Apr 2011) | 11
lines

chan_local:check_bridge() misplaced misplaced ast_mutex_unlock 

if !p->chan->_bridge->_softhangup path isn't followed, brigde remains
locked.

(closes issue https://issues.asterisk.org/view.php?id=19176)
Reported by: alecdavis
Patches: 
      bug19176.diff.txt uploaded by alecdavis (license 585)



------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=315051 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-25 02:06 svnbot         Note Added: 0134065                          
======================================================================




More information about the asterisk-bugs mailing list