[Asterisk-cvs] asterisk/apps app_zapscan.c,1.1.2.3,1.1.2.4

citats at lists.digium.com citats at lists.digium.com
Thu Mar 18 22:51:12 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	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.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- app_zapscan.c	14 Mar 2004 09:50:17 -0000	1.1.2.3
+++ app_zapscan.c	19 Mar 2004 03:46:21 -0000	1.1.2.4
@@ -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