mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
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
This commit is contained in:
@@ -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';
|
||||
|
Reference in New Issue
Block a user