aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-15 22:57:01 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-15 22:57:01 +0000
commitda768336799bd7b1f8340459069352cfbb025408 (patch)
treedb0b655f33b03cd47f69af2e1d4da19588de06ce /pbx
parent288f15a9fa0a26c3a90f1f19fc3e7733a4f7932f (diff)
Make sure that DUNDIRESULT is given an ID.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@64469 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_dundi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index 16cf4eb2a..433558dbb 100644
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -3986,6 +3986,11 @@ static int dundi_result_read(struct ast_channel *chan, const char *cmd, char *da
AST_STANDARD_APP_ARGS(args, parse);
+ if (ast_strlen_zero(args.id)) {
+ ast_log(LOG_ERROR, "A result ID must be provided to DUNDIRESULT\n");
+ goto finish;
+ }
+
if (ast_strlen_zero(args.resultnum)) {
ast_log(LOG_ERROR, "A result number must be given to DUNDIRESULT!\n");
goto finish;