diff options
author | Joshua Colp <jcolp@digium.com> | 2007-10-16 15:15:53 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-10-16 15:15:53 +0000 |
commit | ff9eaa301d512b13af147a92a9bcd291d2f4c0bd (patch) | |
tree | 282f8ada54df1d125ec85f96a04bd222924b79b9 /funcs/func_vmcount.c | |
parent | c4230bb28f04ecc1d393091bde6b5bd0a88a2587 (diff) |
Merged revisions 85850 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r85850 | file | 2007-10-16 11:52:22 -0300 (Tue, 16 Oct 2007) | 4 lines
Check to make sure a value has been given to the VMCOUNT dialplan function.
(closes issue #10996)
Reported by: marsosa
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_vmcount.c')
-rw-r--r-- | funcs/func_vmcount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/funcs/func_vmcount.c b/funcs/func_vmcount.c index 0e6cfef1e..cde16653f 100644 --- a/funcs/func_vmcount.c +++ b/funcs/func_vmcount.c @@ -55,6 +55,9 @@ static int acf_vmcount_exec(struct ast_channel *chan, const char *cmd, char *arg buf[0] = '\0'; + if (ast_strlen_zero(argsstr)) + return -1; + AST_STANDARD_APP_ARGS(args, argsstr); if (strchr(args.vmbox, '@')) { |