[Asterisk-cvs] asterisk/apps app_zapscan.c,1.4,1.5

citats at lists.digium.com citats at lists.digium.com
Thu Mar 18 22:50:52 CST 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/home/citats/cvs/asterisk/apps

Modified Files:
	app_zapscan.c 
Log Message:
Check tempchan->type in app_zapscan.c (bug 1250)


Index: app_zapscan.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_zapscan.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- app_zapscan.c	14 Mar 2004 09:49:58 -0000	1.4
+++ app_zapscan.c	19 Mar 2004 03:46:01 -0000	1.5
@@ -269,7 +269,7 @@
                 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,'-'))) {




More information about the svn-commits mailing list