[Asterisk-cvs] asterisk/apps app_groupcount.c,1.1,1.2

citats at lists.digium.com citats at lists.digium.com
Sun May 9 02:13:57 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv27935/apps

Modified Files:
	app_groupcount.c 
Log Message:
Fix null pointer dereference in app_groupcount.c (bug 1588)


Index: app_groupcount.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_groupcount.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- app_groupcount.c	4 May 2004 16:09:35 -0000	1.1
+++ app_groupcount.c	9 May 2004 06:23:30 -0000	1.2
@@ -68,7 +68,7 @@
 		chan = ast_channel_walk(NULL);
 		while(chan) {
 			test = pbx_builtin_getvar_helper(chan, "GROUP");
-			if (!strcasecmp(test, group))
+			if (test && !strcasecmp(test, group))
 				count++;
 			chan = ast_channel_walk(chan);
 		}




More information about the svn-commits mailing list