aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-02 15:41:36 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-02 15:41:36 +0000
commit2cb6ac92da052e6017e92fb40e061921d402b938 (patch)
treeef3f4809909a7489a0fbd49dd4fa8a66caa984d1 /funcs
parent2cc22d3bad4b7d32c0286d140b00182efa77ef8b (diff)
fixes segfault in func_groupcount
closes issue #16337) Reported by: Parantido Patches: issue_16337.diff uploaded by dvossel (license 671) Tested by: Parantido, dvossel git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@232268 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_groupcount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/funcs/func_groupcount.c b/funcs/func_groupcount.c
index 7f6f8937b..b90fe8576 100644
--- a/funcs/func_groupcount.c
+++ b/funcs/func_groupcount.c
@@ -149,6 +149,10 @@ static int group_function_write(struct ast_channel *chan, char *cmd,
{
char grpcat[256];
+ if (!value) {
+ return -1;
+ }
+
if (!ast_strlen_zero(data)) {
snprintf(grpcat, sizeof(grpcat), "%s@%s", value, data);
} else {