From: Joshua Colp Date: Tue, 16 Oct 2007 14:52:22 +0000 (+0000) Subject: Check to make sure a value has been given to the VMCOUNT dialplan function. X-Git-Tag: 1.4.14~143 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed2561386018704a449ac8529f2487f9e64668dc;p=thirdparty%2Fasterisk.git 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/branches/1.4@85850 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_hasnewvoicemail.c b/apps/app_hasnewvoicemail.c index 17e2838edb..8f3d33504b 100644 --- a/apps/app_hasnewvoicemail.c +++ b/apps/app_hasnewvoicemail.c @@ -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';