[Asterisk-cvs] asterisk/channels chan_zap.c,1.171.2.17,1.171.2.18
markster at lists.digium.com
markster at lists.digium.com
Mon Mar 22 17:53:15 CST 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6737/channels
Modified Files:
Tag: v1-0_stable
chan_zap.c
Log Message:
Fix lock that wasn't released
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.171.2.17
retrieving revision 1.171.2.18
diff -u -d -r1.171.2.17 -r1.171.2.18
--- chan_zap.c 22 Mar 2004 19:47:13 -0000 1.171.2.17
+++ chan_zap.c 22 Mar 2004 22:49:23 -0000 1.171.2.18
@@ -2314,8 +2314,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