Skip to content
Snippets Groups Projects
Commit 687b0ebe authored by James Golovich's avatar James Golovich
Browse files

Check tempchan->type in app_zapscan.c (bug 1250)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8c232e1d
Branches
Tags
No related merge requests found
......@@ -269,7 +269,7 @@ static int conf_exec(struct ast_channel *chan, void *data)
tempchan = ast_channel_walk(tempchan);
if ( !tempchan && !lastchan )
break;
if ( tempchan && (!strcmp(tempchan->type, "Zap")) && (tempchan != chan) ) {
if ( tempchan && tempchan->type && (!strcmp(tempchan->type, "Zap")) && (tempchan != chan) ) {
ast_verbose(VERBOSE_PREFIX_3 "Zap channel %s is in-use, monitoring...\n", tempchan->name);
strcpy(confstr, tempchan->name);
if ((tmp = strchr(confstr,'-'))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment