aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-08 13:45:24 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-08 13:45:24 +0000
commit0f3254efef96ee5ec8f8a40be8dac6a746298dcf (patch)
treee517359f4a80aa4727742d66e8aac3b27467af04
parentef4c6cccd966bdc301bd920de9bab9338d16e2a2 (diff)
Off by one error, resulting in a crash (Issue 9500)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60709 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_oss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 3e23e8172..5089e1b6f 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;
}