From: Tilghman Lesher Date: Sun, 8 Apr 2007 13:45:24 +0000 (+0000) Subject: Off by one error, resulting in a crash (Issue 9500) X-Git-Tag: 1.4.7.1~464 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc54d451dc410380a8cfbbb30e9d01e0206fd645;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 3e23e81729..5089e1b6f4 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -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; }