mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Off by one error, resulting in a crash (Issue 9500)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@60709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1374,7 +1374,7 @@ static int console_dial(int fd, int argc, char *argv[])
|
||||
int i;
|
||||
struct ast_frame f = { AST_FRAME_DTMF, 0 };
|
||||
|
||||
if (argc == 1) { /* argument is mandatory here */
|
||||
if (argc == 2) { /* argument is mandatory here */
|
||||
ast_cli(fd, "Already in a call. You can only dial digits until you hangup.\n");
|
||||
return RESULT_FAILURE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user