]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Check to make sure a value has been given to the VMCOUNT dialplan function.
authorJoshua Colp <jcolp@digium.com>
Tue, 16 Oct 2007 14:52:22 +0000 (14:52 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 16 Oct 2007 14:52:22 +0000 (14:52 +0000)
(closes issue #10996)
Reported by: marsosa

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85850 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_hasnewvoicemail.c

index 17e2838edb72df3f00109a13f5b938db014d2a6c..8f3d33504b72cb9513b2793a818e90749add9631 100644 (file)
@@ -161,6 +161,9 @@ static int acf_vmcount_exec(struct ast_channel *chan, char *cmd, char *argsstr,
                AST_APP_ARG(folder);
        );
 
+       if (ast_strlen_zero(argsstr))
+               return -1;
+
        u = ast_module_user_add(chan);
 
        buf[0] = '\0';