[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


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19176 
====================================================================== 
Reported By:                alecdavis
Assigned To:                alecdavis
====================================================================== 
Project:                    Asterisk
Issue ID:                   19176
Category:                   Channels/chan_local
Reproducibility:            N/A
Severity:                   tweak
Priority:                   normal
Status:                     resolved
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
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                          
2011-04-25 02:06 svnbot         Status                   new => assigned     
2011-04-25 02:06 svnbot         Assigned To               => alecdavis       
2011-04-25 02:06 svnbot         Status                   assigned => resolved
2011-04-25 02:06 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list