[svn-commits] tilghman: branch 1.4 r60709 - /branches/1.4/channels/chan_oss.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Apr 8 06:45:25 MST 2007


Author: tilghman
Date: Sun Apr  8 08:45:24 2007
New Revision: 60709

URL: http://svn.digium.com/view/asterisk?view=rev&rev=60709
Log:
Off by one error, resulting in a crash (Issue 9500)

Modified:
    branches/1.4/channels/chan_oss.c

Modified: branches/1.4/channels/chan_oss.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_oss.c?view=diff&rev=60709&r1=60708&r2=60709
==============================================================================
--- branches/1.4/channels/chan_oss.c (original)
+++ branches/1.4/channels/chan_oss.c Sun Apr  8 08:45:24 2007
@@ -1374,7 +1374,7 @@
 		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;
 		}



More information about the svn-commits mailing list