[Asterisk-cvs] asterisk/channels chan_iax2.c,1.188,1.189
markster at lists.digium.com
markster at lists.digium.com
Thu Sep 30 11:27:51 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv22023/channels
Modified Files:
chan_iax2.c
Log Message:
Fix potential seg (Bug #2550)
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -d -r1.188 -r1.189
--- chan_iax2.c 19 Sep 2004 17:21:26 -0000 1.188
+++ chan_iax2.c 30 Sep 2004 15:30:05 -0000 1.189
@@ -2628,8 +2628,10 @@
cs[1] = cs[2];
}
lock_both(callno0, callno1);
- iaxs[callno0]->bridgecallno = 0;
- iaxs[callno1]->bridgecallno = 0;
+ if(iaxs[callno0])
+ iaxs[callno0]->bridgecallno = 0;
+ if(iaxs[callno1])
+ iaxs[callno1]->bridgecallno = 0;
unlock_both(callno0, callno1);
return res;
}
More information about the svn-commits
mailing list