[asterisk-commits] alecdavis: branch 1.4 r315051 - /branches/1.4/channels/chan_local.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 25 02:06:37 CDT 2011


Author: alecdavis
Date: Mon Apr 25 02:06:29 2011
New Revision: 315051

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=315051
Log:
chan_local:check_bridge() misplaced misplaced ast_mutex_unlock 

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)



Modified:
    branches/1.4/channels/chan_local.c

Modified: branches/1.4/channels/chan_local.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_local.c?view=diff&rev=315051&r1=315050&r2=315051
==============================================================================
--- branches/1.4/channels/chan_local.c (original)
+++ branches/1.4/channels/chan_local.c Mon Apr 25 02:06:29 2011
@@ -371,8 +371,8 @@
 					}
 					ast_mutex_unlock(&p->owner->lock);
 				}
-				ast_mutex_unlock(&(p->chan->_bridge)->lock);
 			}
+			ast_mutex_unlock(&(p->chan->_bridge)->lock);
 		}
 	}
 }




More information about the asterisk-commits mailing list