projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aab786
)
Fix the potential segfault
author
Martin Pycko
<martinp@digium.com>
Thu, 14 Aug 2003 20:44:30 +0000
(20:44 +0000)
committer
Martin Pycko
<martinp@digium.com>
Thu, 14 Aug 2003 20:44:30 +0000
(20:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1330
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_zap.c
patch
|
blob
|
history
diff --git
a/channels/chan_zap.c
b/channels/chan_zap.c
index
c09d550
..
fe490c5
100755
(executable)
--- a/
channels/chan_zap.c
+++ b/
channels/chan_zap.c
@@
-2572,8
+2572,10
@@
static struct ast_frame *zt_handle_event(struct ast_channel *ast)
case ZT_EVENT_ALARM:
#ifdef ZAPATA_PRI
#ifdef PRI_DESTROYCALL
- if (p->call && p->pri->pri)
+ if (p->call && p->pri && p->pri->pri)
pri_destroycall(p->pri->pri, p->call);
+ else
+ ast_log(LOG_WARNING, "The PRI Call have not been destroyed\n");
p->call = NULL;
#else
#error Please "cvs update" and recompile libpri