mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Fix the potential segfault
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2572,8 +2572,10 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
|
|||||||
case ZT_EVENT_ALARM:
|
case ZT_EVENT_ALARM:
|
||||||
#ifdef ZAPATA_PRI
|
#ifdef ZAPATA_PRI
|
||||||
#ifdef PRI_DESTROYCALL
|
#ifdef PRI_DESTROYCALL
|
||||||
if (p->call && p->pri->pri)
|
if (p->call && p->pri && p->pri->pri)
|
||||||
pri_destroycall(p->pri->pri, p->call);
|
pri_destroycall(p->pri->pri, p->call);
|
||||||
|
else
|
||||||
|
ast_log(LOG_WARNING, "The PRI Call have not been destroyed\n");
|
||||||
p->call = NULL;
|
p->call = NULL;
|
||||||
#else
|
#else
|
||||||
#error Please "cvs update" and recompile libpri
|
#error Please "cvs update" and recompile libpri
|
||||||
|
Reference in New Issue
Block a user