diff options
author | Martin Pycko <martinp@digium.com> | 2003-08-14 20:44:30 +0000 |
---|---|---|
committer | Martin Pycko <martinp@digium.com> | 2003-08-14 20:44:30 +0000 |
commit | c9998ac0e20aeec490f51362ec781e70e1ef3d16 (patch) | |
tree | c96da9839e4e0b7a4b6f32ab86ff9c3f6e41a0dd | |
parent | 5aab786c353470ffdbcb7893c8ef31f447cef593 (diff) |
Fix the potential segfault
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | channels/chan_zap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index c09d550cf..fe490c5d7 100755 --- 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 |