From: Mark Michelson Date: Wed, 8 Apr 2009 19:16:49 +0000 (+0000) Subject: Fix a crash due to too few arguments to RetryDial. X-Git-Tag: 1.4.25-rc1~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e31a331b48c639cc25c30ee42f16098ee97aa95;p=thirdparty%2Fasterisk.git 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@187135 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index 98e66ef9ab..a38bcd6853 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1872,7 +1872,7 @@ static int retrydial_exec(struct ast_channel *chan, void *data) } } - if ((dialdata = strchr(dialdata, '|'))) { + if (dialdata && (dialdata = strchr(dialdata, '|'))) { *dialdata++ = '\0'; } else { ast_log(LOG_ERROR, "%s requires more arguments\n",rapp);