[svn-commits] jrose: trunk r310089 - in /trunk: ./ channels/sip/dialplan_functions.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 8 14:34:07 CST 2011


Author: jrose
Date: Tue Mar  8 14:34:05 2011
New Revision: 310089

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=310089
Log:
Merged revisions 310088 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r310088 | jrose | 2011-03-08 14:19:32 -0600 (Tue, 08 Mar 2011) | 9 lines
  
  Returns with an error notice if CHANNEL function of SIP channel is read without arguments.
  
  (Closes issue #18653)
  Reported by: wuwu
  Patches:
        diff.patch uploaded by jrose (license 1225)
  Tested by: jrose
........

Modified:
    trunk/   (props changed)
    trunk/channels/sip/dialplan_functions.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: trunk/channels/sip/dialplan_functions.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/sip/dialplan_functions.c?view=diff&rev=310089&r1=310088&r2=310089
==============================================================================
--- trunk/channels/sip/dialplan_functions.c (original)
+++ trunk/channels/sip/dialplan_functions.c Tue Mar  8 14:34:05 2011
@@ -47,6 +47,13 @@
 		AST_APP_ARG(type);
 		AST_APP_ARG(field);
 	);
+		
+	/* Check for zero arguments */
+	if (ast_strlen_zero(parse)) {
+		ast_log(LOG_ERROR, "Cannot call %s without arguments\n", funcname);
+		return -1;
+	}
+
 	AST_STANDARD_APP_ARGS(args, parse);
 
 	/* Sanity check */




More information about the svn-commits mailing list