[asterisk-commits] tilghman: branch 1.6.2 r235056 - in /branches/1.6.2: ./ res/res_agi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 15 09:35:53 CST 2009


Author: tilghman
Date: Tue Dec 15 09:35:51 2009
New Revision: 235056

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=235056
Log:
Merged revisions 235053 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r235053 | tilghman | 2009-12-15 09:33:49 -0600 (Tue, 15 Dec 2009) | 11 lines
  
  Merged revisions 235052 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r235052 | tilghman | 2009-12-15 09:29:24 -0600 (Tue, 15 Dec 2009) | 4 lines
    
    Mandatory argument checking
    (closes issue #16446)
     Reported by: nicchap
  ........
................

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/res/res_agi.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/res/res_agi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/res/res_agi.c?view=diff&rev=235056&r1=235055&r2=235056
==============================================================================
--- branches/1.6.2/res/res_agi.c (original)
+++ branches/1.6.2/res/res_agi.c Tue Dec 15 09:35:51 2009
@@ -1978,6 +1978,9 @@
 
 static int handle_setmusic(struct ast_channel *chan, AGI *agi, int argc, char *argv[])
 {
+	if (argc < 3) {
+		return RESULT_SHOWUSAGE;
+	}
 	if (!strncasecmp(argv[2], "on", 2))
 		ast_moh_start(chan, argc > 3 ? argv[3] : NULL, NULL);
 	else if (!strncasecmp(argv[2], "off", 3))




More information about the asterisk-commits mailing list