summaryrefslogtreecommitdiff
path: root/pbx
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-05-15 22:57:01 +0000
committerRussell Bryant <russell@russellbryant.com>2007-05-15 22:57:01 +0000
commitf02e26feffb1e36670a046d56fb9c66174b41c4a (patch)
treedb0b655f33b03cd47f69af2e1d4da19588de06ce /pbx
parent9b5454232c07cde5510c2d1415ccdb0b09618dc7 (diff)
Make sure that DUNDIRESULT is given an ID.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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;