[Asterisk-cvs] asterisk/channels chan_zap.c,1.306,1.307
markster at lists.digium.com
markster at lists.digium.com
Mon Jul 26 09:30:52 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory localhost.localdomain:/tmp/cvs-serv5245/channels
Modified Files:
chan_zap.c
Log Message:
Fix potential transfer seg
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.306
retrieving revision 1.307
diff -u -d -r1.306 -r1.307
--- chan_zap.c 24 Jul 2004 23:53:02 -0000 1.306
+++ chan_zap.c 26 Jul 2004 13:16:57 -0000 1.307
@@ -3210,7 +3210,8 @@
p->subs[SUB_THREEWAY].owner->_softhangup |= AST_SOFTHANGUP_DEV;
else if (res) {
/* Don't actually hang up at this point */
- ast_mutex_unlock(&p->subs[SUB_THREEWAY].owner->lock);
+ if (p->subs[SUB_THREEWAY].owner)
+ ast_mutex_unlock(&p->subs[SUB_THREEWAY].owner->lock);
break;
}
} else
More information about the svn-commits
mailing list