[asterisk-commits] file: branch 1.6.0 r181613 - in /branches/1.6.0: ./ apps/app_dial.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 12 08:27:40 CDT 2009


Author: file
Date: Thu Mar 12 08:27:36 2009
New Revision: 181613

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=181613
Log:
Merged revisions 181612 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r181612 | file | 2009-03-12 10:24:12 -0300 (Thu, 12 Mar 2009) | 5 lines
  
  Fix crash when sleep and retries argument was not given to RetryDial application.
  
  (closes issue #14647)
  Reported by: sherpya
........

Modified:
    branches/1.6.0/   (props changed)
    branches/1.6.0/apps/app_dial.c

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

Modified: branches/1.6.0/apps/app_dial.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/apps/app_dial.c?view=diff&rev=181613&r1=181612&r2=181613
==============================================================================
--- branches/1.6.0/apps/app_dial.c (original)
+++ branches/1.6.0/apps/app_dial.c Thu Mar 12 08:27:36 2009
@@ -1988,10 +1988,12 @@
 	parse = ast_strdupa(data);
 	AST_STANDARD_APP_ARGS(args, parse);
 
-	if ((sleep = atoi(args.sleep)))
+	if (!ast_strlen_zero(args.sleep) && (sleep = atoi(args.sleep)))
 		sleep *= 1000;
 
-	loops = atoi(args.retries);
+	if (!ast_strlen_zero(args.retries)) {
+		loops = atoi(args.retries);
+	}
 
 	if (!args.dialdata) {
 		ast_log(LOG_ERROR, "%s requires a 4th argument (dialdata)\n", rapp);




More information about the asterisk-commits mailing list