Make sure that DUNDIRESULT is given an ID.
authorRussell Bryant <russell@russellbryant.com>
Tue, 15 May 2007 22:57:01 +0000 (22:57 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 15 May 2007 22:57:01 +0000 (22:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64469 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_dundi.c

index 16cf4eb..433558d 100644 (file)
@@ -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;