[asterisk-commits] dvossel: branch 1.4 r232268 - /branches/1.4/funcs/func_groupcount.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 2 09:41:41 CST 2009
Author: dvossel
Date: Wed Dec 2 09:41:36 2009
New Revision: 232268
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=232268
Log:
fixes segfault in func_groupcount
closes issue #16337)
Reported by: Parantido
Patches:
issue_16337.diff uploaded by dvossel (license 671)
Tested by: Parantido, dvossel
Modified:
branches/1.4/funcs/func_groupcount.c
Modified: branches/1.4/funcs/func_groupcount.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/funcs/func_groupcount.c?view=diff&rev=232268&r1=232267&r2=232268
==============================================================================
--- branches/1.4/funcs/func_groupcount.c (original)
+++ branches/1.4/funcs/func_groupcount.c Wed Dec 2 09:41:36 2009
@@ -148,6 +148,10 @@
char *data, const char *value)
{
char grpcat[256];
+
+ if (!value) {
+ return -1;
+ }
if (!ast_strlen_zero(data)) {
snprintf(grpcat, sizeof(grpcat), "%s@%s", value, data);
More information about the asterisk-commits
mailing list