[Asterisk-cvs] asterisk/channels chan_zap.c,1.182,1.183
citats at lists.digium.com
citats at lists.digium.com
Thu Mar 4 23:24:42 CST 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv5567/channels
Modified Files:
chan_zap.c
Log Message:
Fix pri->pvt[chan]->owner dereference (bug #1161)
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.182
retrieving revision 1.183
diff -u -d -r1.182 -r1.183
--- chan_zap.c 5 Mar 2004 03:30:38 -0000 1.182
+++ chan_zap.c 5 Mar 2004 04:15:55 -0000 1.183
@@ -6510,9 +6510,9 @@
if (!pri->pvt[chan]->alreadyhungup) {
/* we're calling here zt_hangup so once we get there we need to clear p->call after calling pri_hangup */
pri->pvt[chan]->alreadyhungup = 1;
- pri->pvt[chan]->owner->hangupcause = hangup_pri2cause(e->hangup.cause);
/* Queue a BUSY instead of a hangup if our cause is appropriate */
if (pri->pvt[chan]->owner) {
+ pri->pvt[chan]->owner->hangupcause = hangup_pri2cause(e->hangup.cause);
switch(e->hangup.cause) {
case PRI_CAUSE_USER_BUSY:
pri->pvt[chan]->subs[SUB_REAL].needbusy =1;
More information about the svn-commits
mailing list