[Asterisk-cvs] asterisk/channels chan_zap.c,1.194,1.195

markster at lists.digium.com markster at lists.digium.com
Mon Mar 22 17:52:46 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6719/channels

Modified Files:
	chan_zap.c 
Log Message:
Fix locks that are held too long


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.194
retrieving revision 1.195
diff -u -d -r1.194 -r1.195
--- chan_zap.c	22 Mar 2004 19:47:25 -0000	1.194
+++ chan_zap.c	22 Mar 2004 22:48:59 -0000	1.195
@@ -2325,8 +2325,11 @@
 	oi2 = zt_get_index(c1, p1, 0);
 	oc1 = p0->owner;
 	oc2 = p1->owner;
-	if ((oi1 < 0) || (oi2 < 0))
+	if ((oi1 < 0) || (oi2 < 0)) {
+		ast_mutex_unlock(&c0->lock);
+		ast_mutex_unlock(&c1->lock);
 		return -1;
+	}
 
 
 




More information about the svn-commits mailing list