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:
Tilghman Lesher
2007-04-08 13:45:24 +00:00
parent f32fa7f2ee
commit dc54d451dc

View File

@@ -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;
}