mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Make sure that DUNDIRESULT is given an ID.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user