From 4ec09debe9ffcfb4f3e49e1df4dc991365d474e6 Mon Sep 17 00:00:00 2001 From: file Date: Tue, 16 Oct 2007 15:15:53 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/trunk@85851 f38db490-d61c-443f-a65b-d21fe96a405b --- funcs/func_vmcount.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'funcs') 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, '@')) { -- cgit v1.2.3