From f59581126507620190394e8dacfe1bdb1ef9b791 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 30 Oct 2007 22:15:28 +0000 Subject: If no '?' is found in the arguments, don't attempt to continue. Reported by: blitzrage Fixed by: tilghman Closes issue #11111 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87724 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_exec.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/app_exec.c') diff --git a/apps/app_exec.c b/apps/app_exec.c index 73d534a1b..12b91a488 100644 --- a/apps/app_exec.c +++ b/apps/app_exec.c @@ -166,6 +166,11 @@ static int execif_exec(struct ast_channel *chan, void *data) char *parse = ast_strdupa(data); AST_NONSTANDARD_APP_ARGS(expr, parse, '?'); + if (ast_strlen_zero(expr.remainder)) { + ast_log(LOG_ERROR, "Usage: ExecIf(?():(