[asterisk-commits] file: branch file/groupcountv2 r59726 - /team/file/groupcountv2/app.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Apr 2 12:19:12 MST 2007


Author: file
Date: Mon Apr  2 14:19:12 2007
New Revision: 59726

URL: http://svn.digium.com/view/asterisk?view=rev&rev=59726
Log:
We have to ensure the category variable on the group information is set or else we may segfault which is bad.

Modified:
    team/file/groupcountv2/app.c

Modified: team/file/groupcountv2/app.c
URL: http://svn.digium.com/view/asterisk/team/file/groupcountv2/app.c?view=diff&rev=59726&r1=59725&r2=59726
==============================================================================
--- team/file/groupcountv2/app.c (original)
+++ team/file/groupcountv2/app.c Mon Apr  2 14:19:12 2007
@@ -1058,7 +1058,7 @@
 
 	AST_LIST_LOCK(&groups);
 	AST_LIST_TRAVERSE(&groups, gi, list) {
-		if (gi->chan == chan && !strcasecmp(gi->group, group) && (ast_strlen_zero(category) || !strcasecmp(gi->category, category)))
+		if (gi->chan == chan && !strcasecmp(gi->group, group) && (ast_strlen_zero(category) || (!ast_strlen_zero(gi->category) && !strcasecmp(gi->category, category))))
 			break;
 	}
 



More information about the asterisk-commits mailing list