[svn-commits] tilghman: branch 1.6.2 r228017 - in /branches/1.6.2: ./ apps/app_externalivr.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Nov 5 11:14:58 CST 2009


Author: tilghman
Date: Thu Nov  5 11:14:54 2009
New Revision: 228017

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

........
  r228015 | tilghman | 2009-11-05 11:08:02 -0600 (Thu, 05 Nov 2009) | 4 lines
  
  Don't crash if no arguments are passed.
  (closes issue #16119)
   Reported by: thedavidfactor
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/apps/app_externalivr.c

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

Modified: branches/1.6.2/apps/app_externalivr.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/apps/app_externalivr.c?view=diff&rev=228017&r1=228016&r2=228017
==============================================================================
--- branches/1.6.2/apps/app_externalivr.c (original)
+++ branches/1.6.2/apps/app_externalivr.c Thu Nov  5 11:14:54 2009
@@ -348,6 +348,11 @@
 
 	u->abort_current_sound = 0;
 	u->chan = chan;
+
+	if (ast_strlen_zero(data)) {
+		ast_log(LOG_WARNING, "ExternalIVR requires a command to execute\n");
+		return -1;
+	}
 
 	buf = ast_strdupa(data);
 	AST_STANDARD_APP_ARGS(eivr_args, buf);




More information about the svn-commits mailing list