]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Off by one error, resulting in a crash (Issue 9500)
authorTilghman Lesher <tilghman@meg.abyt.es>
Sun, 8 Apr 2007 13:45:24 +0000 (13:45 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sun, 8 Apr 2007 13:45:24 +0000 (13:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@60709 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_oss.c

index 3e23e81729f4ce5a4a4608c2e0fb798de46f9b8d..5089e1b6f4ffab03b2265b2895c13ea81395e4a0 100644 (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;
                }