[Asterisk-cvs] asterisk/channels chan_agent.c,1.156,1.157
markster
markster
Thu Oct 13 12:35:10 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv20249/channels
Modified Files:
chan_agent.c
Log Message:
Fix seg in chan_agent (bug #5402)
Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.156
retrieving revision 1.157
diff -u -d -r1.156 -r1.157
--- chan_agent.c 5 Oct 2005 21:27:38 -0000 1.156
+++ chan_agent.c 13 Oct 2005 16:29:49 -0000 1.157
@@ -490,7 +490,7 @@
} else {
/* if acknowledgement is not required, and the channel is up, we may have missed
an AST_CONTROL_ANSWER (if there was one), so mark the call acknowledged anyway */
- if (!p->ackcall && !p->acknowledged && p->chan->_state == AST_STATE_UP)
+ if (!p->ackcall && !p->acknowledged && p->chan && (p->chan->_state == AST_STATE_UP))
p->acknowledged = 1;
switch (f->frametype) {
case AST_FRAME_CONTROL:
More information about the svn-commits
mailing list