diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-02 15:41:36 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-02 15:41:36 +0000 |
commit | 2cb6ac92da052e6017e92fb40e061921d402b938 (patch) | |
tree | ef3f4809909a7489a0fbd49dd4fa8a66caa984d1 /funcs | |
parent | 2cc22d3bad4b7d32c0286d140b00182efa77ef8b (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.c | 4 |
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 { |