[asterisk-commits] mmichelson: branch 1.4 r187135 - /branches/1.4/apps/app_dial.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 8 14:17:00 CDT 2009


Author: mmichelson
Date: Wed Apr  8 14:16:49 2009
New Revision: 187135

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=187135
Log:
Fix a crash due to too few arguments to RetryDial.

(closes issue #14852)
Reported by: junky
Patches:
      retry_fix.diff uploaded by junky (license 177)


Modified:
    branches/1.4/apps/app_dial.c

Modified: branches/1.4/apps/app_dial.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/apps/app_dial.c?view=diff&rev=187135&r1=187134&r2=187135
==============================================================================
--- branches/1.4/apps/app_dial.c (original)
+++ branches/1.4/apps/app_dial.c Wed Apr  8 14:16:49 2009
@@ -1872,7 +1872,7 @@
 		}
 	}
 	
-	if ((dialdata = strchr(dialdata, '|'))) {
+	if (dialdata && (dialdata = strchr(dialdata, '|'))) {
 		*dialdata++ = '\0';
 	} else {
 		ast_log(LOG_ERROR, "%s requires more arguments\n",rapp);




More information about the asterisk-commits mailing list